1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

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

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)