1
Fork 0
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:
Andreas Kling 2019-04-06 04:08:09 +02:00
parent 22c204af66
commit f12573cb63
6 changed files with 40 additions and 13 deletions

View file

@ -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>