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:
parent
6e25b501ad
commit
23db98d1e9
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue