1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

WindowServer: Make window switcher look more like other overlays

Render the window switcher with the same background and shadow as other
WindowServer overlays.

Note that we don't actually render it as a WindowServer::Overlay, as the
window switcher uses mouse and keyboard events, and there's currently
no way for an overlay to receive events.
This commit is contained in:
Andreas Kling 2021-11-14 12:20:18 +01:00
parent 7fb2540ffe
commit 7e5b22333e
3 changed files with 29 additions and 16 deletions

View file

@ -50,11 +50,11 @@ public:
private:
WindowSwitcher();
int thumbnail_width() const { return 40; }
int thumbnail_height() const { return 40; }
int item_height() const { return 10 + thumbnail_height(); }
int padding() const { return 8; }
int item_padding() const { return 8; }
int thumbnail_width() const { return 64; }
int thumbnail_height() const { return 64; }
int item_height() const { return 14 + thumbnail_height(); }
int padding() const { return 30; }
int item_padding() const { return 10; }
void draw();
void redraw();