mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 17:28:48 +00:00
LibGUI: Use widget override cursors in ColorInput
This commit is contained in:
parent
cab422b441
commit
d76b2d0baa
Notes:
sideshowbarker
2024-07-19 02:46:41 +09:00
Author: https://github.com/awesomekling
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)
|
||||
{
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue