mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
WindowServer: Remove rect behind window icon in WindowSwitcher
This patch removes the background behind window icons in the WindowSwitcher which looked like it was being rendered incorrectly (without alpha) previously.
This commit is contained in:
parent
390d3e9fbe
commit
76a18e1172
Notes:
sideshowbarker
2024-07-18 10:03:31 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/76a18e1172a Pull-request: https://github.com/SerenityOS/serenity/pull/8561
1 changed files with 0 additions and 1 deletions
|
@ -188,7 +188,6 @@ void WindowSwitcher::draw()
|
|||
Gfx::StylePainter::paint_frame(painter, thumbnail_rect.inflated(4, 4), palette, Gfx::FrameShape::Container, Gfx::FrameShadow::Sunken, 2);
|
||||
}
|
||||
Gfx::IntRect icon_rect = { thumbnail_rect.bottom_right().translated(-window.icon().width(), -window.icon().height()), { window.icon().width(), window.icon().height() } };
|
||||
painter.fill_rect(icon_rect, palette.window());
|
||||
painter.blit(icon_rect.location(), window.icon(), window.icon().rect());
|
||||
painter.draw_text(item_rect.translated(thumbnail_width() + 12, 0), window.computed_title(), WindowManager::the().window_title_font(), Gfx::TextAlignment::CenterLeft, text_color);
|
||||
auto window_details = m_windows_on_multiple_stacks ? String::formatted("{} on {}:{}", window.rect().to_string(), window.window_stack().row() + 1, window.window_stack().column() + 1) : window.rect().to_string();
|
||||
|
|
Loading…
Reference in a new issue