mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
WorkspacePicker: Tweak applet height and draw frame around desktop rects
This commit is contained in:
parent
8cfb0d4514
commit
6744930f4a
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue