mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LIbGUI+LibGfx: Paint focused push buttons with a heavier look
Draw a heavy shadow frame around focused push buttons for emphasis. For now I've used the ThreedShadow2 color role as it feels dark enough.
This commit is contained in:
parent
2bbf3b5d0b
commit
92c073a9d1
7 changed files with 19 additions and 11 deletions
|
@ -441,7 +441,7 @@ void ColorButton::paint_event(PaintEvent& event)
|
|||
Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
|
||||
Gfx::StylePainter::paint_button(painter, rect(), palette(), Gfx::ButtonStyle::Normal, is_being_pressed(), is_hovered(), is_checked(), is_enabled());
|
||||
Gfx::StylePainter::paint_button(painter, rect(), palette(), Gfx::ButtonStyle::Normal, is_being_pressed(), is_hovered(), is_checked(), is_enabled(), is_focused());
|
||||
|
||||
painter.fill_rect(rect().shrunken(2, 2), m_color);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue