1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 10:14:58 +00:00

LibGUI: Use widget override cursors in ColorInput

This commit is contained in:
Andreas Kling 2020-09-11 14:51:02 +02:00
parent cab422b441
commit d76b2d0baa

View file

@ -100,11 +100,11 @@ void ColorInput::mouseup_event(MouseEvent& event)
void ColorInput::mousemove_event(MouseEvent& event)
{
if (color_rect().contains(event.position())) {
window()->set_cursor(Gfx::StandardCursor::Hand);
set_override_cursor(Gfx::StandardCursor::Hand);
event.accept();
return;
} else {
window()->set_cursor(Gfx::StandardCursor::IBeam);
set_override_cursor(Gfx::StandardCursor::IBeam);
}
TextEditor::mousemove_event(event);