mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:47:46 +00:00
WindowServer: Draw a coolbar border around the hovered switcher item
This gives a small but nice indication that the switcher window list items are clickable. :^)
This commit is contained in:
parent
4c620dea83
commit
0f00e9a1c7
2 changed files with 31 additions and 11 deletions
|
@ -75,6 +75,7 @@ public:
|
|||
Window* switcher_window() { return m_switcher_window.ptr(); }
|
||||
|
||||
private:
|
||||
void redraw();
|
||||
void select_window_at_index(int index);
|
||||
Gfx::Rect item_rect(int index) const;
|
||||
|
||||
|
@ -85,6 +86,7 @@ private:
|
|||
bool m_visible { false };
|
||||
Vector<WeakPtr<Window>> m_windows;
|
||||
int m_selected_index { 0 };
|
||||
int m_hovered_index { -1 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue