From 03c576acc54af4527887b8390e2a4dcb6c9b4dc9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 23 Aug 2020 23:39:27 +0200 Subject: 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. :^) --- Libraries/LibGfx/ClassicStylePainter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibGfx/ClassicStylePainter.h') 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; -- cgit v1.2.3