ColorPicker: always show hue slider at full saturation and lightness

Closes https://github.com/emilk/egui/issues/230
This commit is contained in:
Emil Ernerfeldt 2021-03-21 16:15:13 +01:00
parent 405ae3bcee
commit c1d5bda143

View file

@ -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();