mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +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
|
@ -35,7 +35,7 @@ namespace Gfx {
|
|||
|
||||
class ClassicStylePainter : public BaseStylePainter {
|
||||
public:
|
||||
void paint_button(Painter&, const IntRect&, const Palette&, ButtonStyle, bool pressed, bool hovered = false, bool checked = false, bool enabled = true) override;
|
||||
void paint_button(Painter&, const IntRect&, const Palette&, ButtonStyle, bool pressed, bool hovered = false, bool checked = false, bool enabled = true, bool focused = false) override;
|
||||
void paint_tab_button(Painter&, const IntRect&, const Palette&, bool active, bool hovered, bool enabled, bool top) override;
|
||||
void paint_surface(Painter&, const IntRect&, const Palette&, bool paint_vertical_lines = true, bool paint_top_line = true) override;
|
||||
void paint_frame(Painter&, const IntRect&, const Palette&, FrameShape, FrameShadow, int thickness, bool skip_vertical_lines = false) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue