From 23db98d1e9e65b284b423781e9b7d48a3fe202f1 Mon Sep 17 00:00:00 2001 From: CodeforEvolution Date: Sun, 3 Jul 2022 15:39:14 -0500 Subject: 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 --- Userland/Libraries/LibGUI/ColorPicker.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries') 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) -- cgit v1.2.3