summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorCodeforEvolution <secundaja@gmail.com>2022-07-03 15:39:14 -0500
committerAndreas Kling <kling@serenityos.org>2022-07-15 12:35:38 +0200
commit23db98d1e9e65b284b423781e9b7d48a3fe202f1 (patch)
tree0ce5f5242b8a0131e1f554c37489f08a07d8dd77 /Userland/Libraries
parent6e25b501ad0cd4be2a37835dc3472986504338b7 (diff)
downloadserenity-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.cpp2
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)