diff options
author | CodeforEvolution <secundaja@gmail.com> | 2022-07-03 15:39:14 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-15 12:35:38 +0200 |
commit | 23db98d1e9e65b284b423781e9b7d48a3fe202f1 (patch) | |
tree | 0ce5f5242b8a0131e1f554c37489f08a07d8dd77 /Userland/Libraries | |
parent | 6e25b501ad0cd4be2a37835dc3472986504338b7 (diff) | |
download | serenity-23db98d1e9e65b284b423781e9b7d48a3fe202f1.zip |
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
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/ColorPicker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/ColorPicker.cpp b/Userland/Libraries/LibGUI/ColorPicker.cpp index 312ab1848f..0fb8d7bf3d 100644 --- a/Userland/Libraries/LibGUI/ColorPicker.cpp +++ b/Userland/Libraries/LibGUI/ColorPicker.cpp @@ -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) |