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
Notes: sideshowbarker 2024-07-19 02:46:41 +09:00

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