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
Notes:
sideshowbarker
2024-07-17 17:49:11 +09:00
Author: https://github.com/CodeforEvolution Commit: https://github.com/SerenityOS/serenity/commit/23db98d1e9 Pull-request: https://github.com/SerenityOS/serenity/pull/14474 Reviewed-by: https://github.com/MacDue
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
Reference in a new issue