diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-30 19:57:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-30 19:57:44 +0200 |
commit | b4fde7201328fb73e7789ebf8bf6ee8c47b4cb64 (patch) | |
tree | 50213d4a244b81a5a7d2327d4155d64a84fbb4a6 /Libraries/LibGUI/AbstractView.h | |
parent | add93bf593c5cb079c02f176f78d4966c0d54b0e (diff) | |
download | serenity-b4fde7201328fb73e7789ebf8bf6ee8c47b4cb64.zip |
LibGUI: Brighten icons when hovering items in item views
View classes now track their hovered item and paint them in a slightly
brighter shade to liven up the user interface. :^)
Diffstat (limited to 'Libraries/LibGUI/AbstractView.h')
-rw-r--r-- | Libraries/LibGUI/AbstractView.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/AbstractView.h b/Libraries/LibGUI/AbstractView.h index 5e041a1d64..dfedbd7614 100644 --- a/Libraries/LibGUI/AbstractView.h +++ b/Libraries/LibGUI/AbstractView.h @@ -96,6 +96,8 @@ protected: Gfx::Point m_left_mousedown_position; bool m_might_drag { false }; + ModelIndex m_hovered_index; + private: RefPtr<Model> m_model; OwnPtr<ModelEditingDelegate> m_editing_delegate; |