mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
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. :^)
This commit is contained in:
parent
59172e2714
commit
03c576acc5
Notes:
sideshowbarker
2024-07-19 03:15:10 +09:00
Author: https://github.com/awesomekling
Commit: 03c576acc5
6 changed files with 61 additions and 36 deletions
|
@ -38,9 +38,9 @@ BaseStylePainter& StylePainter::current()
|
|||
return style;
|
||||
}
|
||||
|
||||
void StylePainter::paint_tab_button(Painter& painter, const IntRect& rect, const Palette& palette, bool active, bool hovered, bool enabled)
|
||||
void StylePainter::paint_tab_button(Painter& painter, const IntRect& rect, const Palette& palette, bool active, bool hovered, bool enabled, bool top)
|
||||
{
|
||||
current().paint_tab_button(painter, rect, palette, active, hovered, enabled);
|
||||
current().paint_tab_button(painter, rect, palette, active, hovered, enabled, top);
|
||||
}
|
||||
|
||||
void StylePainter::paint_button(Painter& painter, const IntRect& rect, const Palette& palette, ButtonStyle button_style, bool pressed, bool hovered, bool checked, bool enabled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue