mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 10:18:59 +00:00
LibGfx: Draw window frame icon scaled to title_bar_icon_rect()
Partially fixes #5806.
This commit is contained in:
parent
33bd18f308
commit
18a5ddfadd
Notes:
sideshowbarker
2024-07-18 21:18:57 +09:00
Author: https://github.com/linusg
Commit: 18a5ddfadd
Pull-request: https://github.com/SerenityOS/serenity/pull/5810
Issue: https://github.com/SerenityOS/serenity/issues/5806
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ void ClassicWindowTheme::paint_normal_frame(Painter& painter, WindowState window
|
|||
painter.draw_text(clipped_title_rect.translated(0, 1), title_text, title_font, Gfx::TextAlignment::CenterLeft, title_color, Gfx::TextElision::Right);
|
||||
}
|
||||
|
||||
painter.blit(titlebar_icon_rect.location(), icon, icon.rect());
|
||||
painter.draw_scaled_bitmap(titlebar_icon_rect, icon, icon.rect());
|
||||
}
|
||||
|
||||
void ClassicWindowTheme::paint_tool_window_frame(Painter& painter, WindowState window_state, const IntRect& window_rect, const StringView& title_text, const Palette& palette, const IntRect& leftmost_button_rect) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue