mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
Add a slight hover highlight to GButton and WSButton. :^)
This commit is contained in:
parent
22c204af66
commit
f12573cb63
6 changed files with 40 additions and 13 deletions
|
@ -101,6 +101,7 @@ public:
|
|||
|
||||
void set_active_window(WSWindow*);
|
||||
void set_cursor_tracking_button(WSButton* button) { m_cursor_tracking_button = button; }
|
||||
void set_hovered_button(WSButton*);
|
||||
|
||||
private:
|
||||
void process_mouse_event(const WSMouseEvent&, WSWindow*& event_window);
|
||||
|
@ -206,6 +207,7 @@ private:
|
|||
|
||||
String m_username;
|
||||
WSButton* m_cursor_tracking_button { nullptr };
|
||||
WSButton* m_hovered_button { nullptr };
|
||||
};
|
||||
|
||||
template<typename Callback>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue