mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
LibGUI: Tweak TabWidget tab icon placement
This commit is contained in:
parent
260e4049ff
commit
0f4fa43541
Notes:
sideshowbarker
2024-07-19 07:19:18 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0f4fa43541a
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ void TabWidget::paint_event(PaintEvent& event)
|
|||
if (!icon)
|
||||
return;
|
||||
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());
|
||||
text_rect.set_x(icon_rect.right() + 1 + 4);
|
||||
text_rect.intersect(button_rect);
|
||||
|
|
Loading…
Add table
Reference in a new issue