WorkspacePicker: Tweak applet height and draw frame around desktop rects

This commit is contained in:
Andreas Kling 2022-08-14 12:50:50 +02:00
commit 6744930f4a
Notes: sideshowbarker 2024-07-17 08:45:34 +09:00
2 changed files with 4 additions and 2 deletions

View file

@ -52,8 +52,10 @@ public:
for (unsigned row = 0; row < desktop.workspace_rows(); ++row) {
for (unsigned column = 0; column < desktop.workspace_columns(); ++column) {
painter.fill_rect(rect_for_desktop(row, column),
auto rect = rect_for_desktop(row, column);
painter.fill_rect(rect,
(row == current_row() && column == current_column()) ? active_color : inactive_color);
Gfx::StylePainter::current().paint_frame(painter, rect, palette(), Gfx::FrameShape::Container, Gfx::FrameShadow::Sunken, 1);
}
}
}