summaryrefslogtreecommitdiff
path: root/LibGUI/GTabWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LibGUI/GTabWidget.cpp')
-rw-r--r--LibGUI/GTabWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGUI/GTabWidget.cpp b/LibGUI/GTabWidget.cpp
index be7351a0f3..c404e70c5e 100644
--- a/LibGUI/GTabWidget.cpp
+++ b/LibGUI/GTabWidget.cpp
@@ -98,7 +98,7 @@ void GTabWidget::paint_event(GPaintEvent& event)
bool hovered = i == m_hovered_tab_index;
auto button_rect = this->button_rect(i);
StylePainter::paint_tab_button(painter, button_rect, false, hovered, m_tabs[i].widget->is_enabled());
- painter.draw_text(button_rect, m_tabs[i].title, TextAlignment::Center);
+ painter.draw_text(button_rect.translated(0, 1), m_tabs[i].title, TextAlignment::Center);
}
for (int i = 0; i < m_tabs.size(); ++i) {
@@ -107,7 +107,7 @@ void GTabWidget::paint_event(GPaintEvent& event)
bool hovered = i == m_hovered_tab_index;
auto button_rect = this->button_rect(i);
StylePainter::paint_tab_button(painter, button_rect, true, hovered, m_tabs[i].widget->is_enabled());
- painter.draw_text(button_rect, m_tabs[i].title, TextAlignment::Center);
+ painter.draw_text(button_rect.translated(0, 1), m_tabs[i].title, TextAlignment::Center);
painter.draw_line(button_rect.bottom_left().translated(1, 1), button_rect.bottom_right().translated(-1, 1), background_color());
break;
}