mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 16:05:08 +00:00
LibGUI: Use widget override cursors in ColorInput
This commit is contained in:
parent
cab422b441
commit
d76b2d0baa
1 changed files with 2 additions and 2 deletions
|
@ -100,11 +100,11 @@ void ColorInput::mouseup_event(MouseEvent& event)
|
||||||
void ColorInput::mousemove_event(MouseEvent& event)
|
void ColorInput::mousemove_event(MouseEvent& event)
|
||||||
{
|
{
|
||||||
if (color_rect().contains(event.position())) {
|
if (color_rect().contains(event.position())) {
|
||||||
window()->set_cursor(Gfx::StandardCursor::Hand);
|
set_override_cursor(Gfx::StandardCursor::Hand);
|
||||||
event.accept();
|
event.accept();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
window()->set_cursor(Gfx::StandardCursor::IBeam);
|
set_override_cursor(Gfx::StandardCursor::IBeam);
|
||||||
}
|
}
|
||||||
|
|
||||||
TextEditor::mousemove_event(event);
|
TextEditor::mousemove_event(event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue