summaryrefslogtreecommitdiff
path: root/LibGUI/GButton.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-20 09:22:38 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-20 09:22:38 +0100
commitd353c7c3d6811f5ff2a55bb423a051a0de27297e (patch)
tree8f89577a789ccdffbe399bb2cb18615e31c78779 /LibGUI/GButton.cpp
parentdc753b58a5786368ada8d7ef04f992dd451f0ac8 (diff)
downloadserenity-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.cpp2
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();