mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:54:57 +00:00
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.
This commit is contained in:
parent
dc753b58a5
commit
d353c7c3d6
6 changed files with 24 additions and 13 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue