1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

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.
This commit is contained in:
Andreas Kling 2020-04-29 19:02:00 +02:00
parent 8159f45f6e
commit cdbc252190
2 changed files with 16 additions and 4 deletions

View file

@ -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 };
};
}