mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibGUI: Tweak TabWidget tab icon placement
This commit is contained in:
parent
260e4049ff
commit
0f4fa43541
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ void TabWidget::paint_event(PaintEvent& event)
|
||||||
if (!icon)
|
if (!icon)
|
||||||
return;
|
return;
|
||||||
Gfx::Rect icon_rect { button_rect.x(), button_rect.y(), 16, 16 };
|
Gfx::Rect icon_rect { button_rect.x(), button_rect.y(), 16, 16 };
|
||||||
icon_rect.move_by(3, 3);
|
icon_rect.move_by(4, 3);
|
||||||
painter.draw_scaled_bitmap(icon_rect, *icon, icon->rect());
|
painter.draw_scaled_bitmap(icon_rect, *icon, icon->rect());
|
||||||
text_rect.set_x(icon_rect.right() + 1 + 4);
|
text_rect.set_x(icon_rect.right() + 1 + 4);
|
||||||
text_rect.intersect(button_rect);
|
text_rect.intersect(button_rect);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue