mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:57:35 +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
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…
Add table
Add a link
Reference in a new issue