diff options
author | Andreas Kling <kling@serenityos.org> | 2022-08-14 12:50:50 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-14 12:50:50 +0200 |
commit | 6744930f4a8767eca528637ff8afcefc37e0f087 (patch) | |
tree | eb55b1ab2937467edf2065e1ef9b9ea209106659 | |
parent | 8cfb0d45145ce72674993dfc6ad0f309f5b1a9dc (diff) | |
download | serenity-6744930f4a8767eca528637ff8afcefc37e0f087.zip |
WorkspacePicker: Tweak applet height and draw frame around desktop rects
-rw-r--r-- | Userland/Applets/WorkspacePicker/DesktopStatusWindow.cpp | 4 | ||||
-rw-r--r-- | Userland/Applets/WorkspacePicker/main.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Applets/WorkspacePicker/DesktopStatusWindow.cpp b/Userland/Applets/WorkspacePicker/DesktopStatusWindow.cpp index a96eea8ab2..97263525e1 100644 --- a/Userland/Applets/WorkspacePicker/DesktopStatusWindow.cpp +++ b/Userland/Applets/WorkspacePicker/DesktopStatusWindow.cpp @@ -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); } } } diff --git a/Userland/Applets/WorkspacePicker/main.cpp b/Userland/Applets/WorkspacePicker/main.cpp index ad658295e3..442f7ea8a1 100644 --- a/Userland/Applets/WorkspacePicker/main.cpp +++ b/Userland/Applets/WorkspacePicker/main.cpp @@ -30,7 +30,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto window = TRY(DesktopStatusWindow::try_create()); window->set_title("WorkspacePicker"); - window->resize(28, 16); + window->resize(28, 15); auto& desktop = GUI::Desktop::the(); |