summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/AbstractView.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-30 19:57:44 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-30 19:57:44 +0200
commitb4fde7201328fb73e7789ebf8bf6ee8c47b4cb64 (patch)
tree50213d4a244b81a5a7d2327d4155d64a84fbb4a6 /Libraries/LibGUI/AbstractView.h
parentadd93bf593c5cb079c02f176f78d4966c0d54b0e (diff)
downloadserenity-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.h2
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;