summaryrefslogtreecommitdiff
path: root/LibGUI/GSplitter.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-30 14:04:53 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-30 14:04:53 +0100
commit9ac59093946cd063590f3ef06c700821dfad305f (patch)
tree9af28fedb9d25ffff19474f5d8641deb98283e36 /LibGUI/GSplitter.cpp
parent74786f2d5aef74b38140d11139c6c38cad2eae1f (diff)
downloadserenity-9ac59093946cd063590f3ef06c700821dfad305f.zip
LibGUI: Highlight the GSplitter when hovering over it.
Diffstat (limited to 'LibGUI/GSplitter.cpp')
-rw-r--r--LibGUI/GSplitter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/LibGUI/GSplitter.cpp b/LibGUI/GSplitter.cpp
index e76847d044..c6e1ef7b96 100644
--- a/LibGUI/GSplitter.cpp
+++ b/LibGUI/GSplitter.cpp
@@ -15,6 +15,18 @@ GSplitter::~GSplitter()
{
}
+void GSplitter::enter_event(GEvent&)
+{
+ set_background_color(Color::from_rgb(0xd6d2ce));
+ update();
+}
+
+void GSplitter::leave_event(GEvent&)
+{
+ set_background_color(Color::LightGray);
+ update();
+}
+
void GSplitter::mousedown_event(GMouseEvent& event)
{
if (event.button() != GMouseButton::Left)