LibGUI: Sync ColorPicker's color slider with other color widgets

The color slider on the ColorPicker widget's "Custom Color" page will
now update when changing the color with the individual channel
spinboxes and the larger color field box.

Fixes #14425
This commit is contained in:
CodeforEvolution 2022-07-03 15:39:14 -05:00 committed by Andreas Kling
parent 6e25b501ad
commit 23db98d1e9
Notes: sideshowbarker 2024-07-17 17:49:11 +09:00

View file

@ -514,6 +514,8 @@ void CustomColorWidget::set_color(Color color)
{
m_color_field->set_color(color);
m_color_field->set_hue(color.to_hsv().hue);
m_color_slider->set_value(color.to_hsv().hue);
}
ColorField::ColorField(Color color)