1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +00:00

LibGUI: Highlight the GSplitter when hovering over it.

This commit is contained in:
Andreas Kling 2019-03-30 14:04:53 +01:00
parent 74786f2d5a
commit 9ac5909394
2 changed files with 14 additions and 0 deletions

View file

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