diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-20 09:22:38 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-20 09:22:38 +0100 |
commit | d353c7c3d6811f5ff2a55bb423a051a0de27297e (patch) | |
tree | 8f89577a789ccdffbe399bb2cb18615e31c78779 /LibGUI/GStyle.h | |
parent | dc753b58a5786368ada8d7ef04f992dd451f0ac8 (diff) | |
download | serenity-d353c7c3d6811f5ff2a55bb423a051a0de27297e.zip |
LibGUI: Support different button styles.
I want to try an MS Office 97 "CoolBar" inspired look for my toolbars.
This is only the painting support, we still need hover events to implement
the actual effect.
Diffstat (limited to 'LibGUI/GStyle.h')
-rw-r--r-- | LibGUI/GStyle.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LibGUI/GStyle.h b/LibGUI/GStyle.h index 8eae749a78..2dc62c3d00 100644 --- a/LibGUI/GStyle.h +++ b/LibGUI/GStyle.h @@ -3,11 +3,13 @@ class Painter; class Rect; +enum class GButtonStyle { Normal, CoolBar }; + class GStyle { public: static GStyle& the(); - void paint_button(Painter& painter, const Rect& rect, bool pressed); + void paint_button(Painter& painter, const Rect& rect, GButtonStyle, bool pressed, bool hovered = false); private: GStyle(); |