ColorPicker: always show hue slider at full saturation and lightness
Closes https://github.com/emilk/egui/issues/230
This commit is contained in:
parent
405ae3bcee
commit
c1d5bda143
1 changed files with 9 additions and 1 deletions
|
@ -290,7 +290,15 @@ fn color_picker_hsvag_2d(ui: &mut Ui, hsva: &mut HsvaGamma, alpha: Alpha) {
|
|||
|
||||
let HsvaGamma { h, s, v, a: _ } = hsva;
|
||||
|
||||
color_slider_1d(ui, h, |h| HsvaGamma { h, ..opaque }.into());
|
||||
color_slider_1d(ui, h, |h| {
|
||||
HsvaGamma {
|
||||
h,
|
||||
s: 1.0,
|
||||
v: 1.0,
|
||||
a: 1.0,
|
||||
}
|
||||
.into()
|
||||
});
|
||||
ui.label("Hue");
|
||||
ui.end_row();
|
||||
|
||||
|
|
Loading…
Reference in a new issue