diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-23 23:39:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-23 23:53:45 +0200 |
commit | 03c576acc54af4527887b8390e2a4dcb6c9b4dc9 (patch) | |
tree | 1157e3616c2c147fd2672eee61071bdeed89b9b1 /Libraries/LibGfx/ClassicStylePainter.h | |
parent | 59172e271493045910e6d1f8c17f1ca19099c578 (diff) | |
download | serenity-03c576acc54af4527887b8390e2a4dcb6c9b4dc9.zip |
LibGUI+LibGfx: Implement upside-down appearance for bottom-side tabs
GUI::TabWidget has long has a TabPosition::Bottom option, but we still
rendered the tab buttons the same as TabPosition::Top.
This patch implements a custom look for bottom-side tabs. I've done my
best to match the look of the top-side ones, but there might be some
improvements we can make here. :^)
Diffstat (limited to 'Libraries/LibGfx/ClassicStylePainter.h')
-rw-r--r-- | Libraries/LibGfx/ClassicStylePainter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGfx/ClassicStylePainter.h b/Libraries/LibGfx/ClassicStylePainter.h index 7cdbf9cd39..6eea5f9a90 100644 --- a/Libraries/LibGfx/ClassicStylePainter.h +++ b/Libraries/LibGfx/ClassicStylePainter.h @@ -36,7 +36,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_tab_button(Painter&, const IntRect&, const Palette&, bool active, bool hovered, bool enabled) 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; void paint_window_frame(Painter&, const IntRect&, const Palette&) override; |