summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-24 00:05:40 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-24 00:05:40 +0200
commit638c6b754767db66fe444a9a695e683450067a43 (patch)
tree8d2c8a844f38aa755953df0ece0399a1339a1deb /Libraries
parent4eb1fd6ea3e3d459e3607be1029419ada9a940ba (diff)
downloadserenity-638c6b754767db66fe444a9a695e683450067a43.zip
LibGUI: Fix an unsightly pixel glitch in bottom-side tabs
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibGUI/TabWidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/TabWidget.cpp b/Libraries/LibGUI/TabWidget.cpp
index ee7d46c952..17fc713353 100644
--- a/Libraries/LibGUI/TabWidget.cpp
+++ b/Libraries/LibGUI/TabWidget.cpp
@@ -197,6 +197,7 @@ void TabWidget::paint_event(PaintEvent& event)
painter.draw_line(button_rect.bottom_left().translated(1, 1), button_rect.bottom_right().translated(-1, 1), palette().button());
} else if (m_tab_position == TabPosition::Bottom) {
painter.set_pixel(button_rect.top_left().translated(0, -1), palette().threed_highlight());
+ painter.set_pixel(button_rect.top_right().translated(-1, -1), palette().threed_shadow1());
painter.draw_line(button_rect.top_left().translated(1, -1), button_rect.top_right().translated(-2, -1), palette().button());
painter.draw_line(button_rect.top_left().translated(1, -2), button_rect.top_right().translated(-2, -2), palette().button());
}