diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-29 19:02:00 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-29 19:17:40 +0200 |
commit | cdbc252190a44a06c3914dc14d74afd0b52ea864 (patch) | |
tree | 91273d4106d9aaffca7909e0df099b773208a578 /Libraries/LibGUI/ColorInput.h | |
parent | 8159f45f6ee1ddc551df82a2102f6bc9bc9059af (diff) | |
download | serenity-cdbc252190a44a06c3914dc14d74afd0b52ea864.zip |
LibGUI: Require a full click on ColorInput's color rect to open picker
Let's not open the ColorPicker on mousedown, that was too jarring.
Diffstat (limited to 'Libraries/LibGUI/ColorInput.h')
-rw-r--r-- | Libraries/LibGUI/ColorInput.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/ColorInput.h b/Libraries/LibGUI/ColorInput.h index d223ce7ff4..cebefbe0dc 100644 --- a/Libraries/LibGUI/ColorInput.h +++ b/Libraries/LibGUI/ColorInput.h @@ -50,6 +50,7 @@ public: protected: virtual void mousedown_event(MouseEvent&) override; + virtual void mouseup_event(MouseEvent&) override; virtual void mousemove_event(MouseEvent&) override; virtual void paint_event(PaintEvent&) override; @@ -62,6 +63,7 @@ private: Color m_color; String m_color_picker_title { "Select color" }; bool m_color_has_alpha_channel { true }; + bool m_may_be_color_rect_click { false }; }; } |