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/GButton.cpp | |
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/GButton.cpp')
-rw-r--r-- | LibGUI/GButton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GButton.cpp b/LibGUI/GButton.cpp index 9062baf181..848ed9bcbc 100644 --- a/LibGUI/GButton.cpp +++ b/LibGUI/GButton.cpp @@ -26,7 +26,7 @@ void GButton::paint_event(GPaintEvent&) { Painter painter(*this); - GStyle::the().paint_button(painter, rect(), m_being_pressed); + GStyle::the().paint_button(painter, rect(), m_button_style, m_being_pressed, m_hovered); if (!caption().is_empty() || m_icon) { auto content_rect = rect(); |