diff --git a/Base/res/cursor-themes/Dark/Config.ini b/Base/res/cursor-themes/Dark/Config.ini index fec44b14a7..88cc11daae 100644 --- a/Base/res/cursor-themes/Dark/Config.ini +++ b/Base/res/cursor-themes/Dark/Config.ini @@ -15,3 +15,4 @@ Help=help.x1y1.png Drag=drag.png Wait=wait.f14t100.png Crosshair=crosshair.png +Eyedropper=eyedropper.x2y2.png diff --git a/Base/res/cursor-themes/Dark/eyedropper.x2y2.png b/Base/res/cursor-themes/Dark/eyedropper.x2y2.png new file mode 100644 index 0000000000..2d3c67584d Binary files /dev/null and b/Base/res/cursor-themes/Dark/eyedropper.x2y2.png differ diff --git a/Base/res/cursor-themes/Default/Config.ini b/Base/res/cursor-themes/Default/Config.ini index fec44b14a7..88cc11daae 100644 --- a/Base/res/cursor-themes/Default/Config.ini +++ b/Base/res/cursor-themes/Default/Config.ini @@ -15,3 +15,4 @@ Help=help.x1y1.png Drag=drag.png Wait=wait.f14t100.png Crosshair=crosshair.png +Eyedropper=eyedropper.x2y2.png diff --git a/Base/res/cursor-themes/Default/eyedropper.x2y2.png b/Base/res/cursor-themes/Default/eyedropper.x2y2.png new file mode 100644 index 0000000000..cd6b4c6bb6 Binary files /dev/null and b/Base/res/cursor-themes/Default/eyedropper.x2y2.png differ diff --git a/Userland/Libraries/LibGfx/StandardCursor.h b/Userland/Libraries/LibGfx/StandardCursor.h index 52c4ab84d8..1e15852dbf 100644 --- a/Userland/Libraries/LibGfx/StandardCursor.h +++ b/Userland/Libraries/LibGfx/StandardCursor.h @@ -26,6 +26,7 @@ enum class StandardCursor { Move, Wait, Disallowed, + Eyedropper, __Count, }; diff --git a/Userland/Services/WindowServer/Cursor.cpp b/Userland/Services/WindowServer/Cursor.cpp index 4f5eda1b0b..18fc08f6a3 100644 --- a/Userland/Services/WindowServer/Cursor.cpp +++ b/Userland/Services/WindowServer/Cursor.cpp @@ -109,6 +109,8 @@ RefPtr Cursor::create(Gfx::StandardCursor standard_cursor) return WindowManager::the().wait_cursor(); case Gfx::StandardCursor::Disallowed: return WindowManager::the().disallowed_cursor(); + case Gfx::StandardCursor::Eyedropper: + return WindowManager::the().eyedropper_cursor(); default: VERIFY_NOT_REACHED(); } diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index eeec1d4f10..be415582c2 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -2080,6 +2080,7 @@ void WindowManager::apply_cursor_theme(const String& theme_name) reload_cursor(m_drag_cursor, "Drag"); reload_cursor(m_wait_cursor, "Wait"); reload_cursor(m_crosshair_cursor, "Crosshair"); + reload_cursor(m_eyedropper_cursor, "Eyedropper"); Compositor::the().invalidate_cursor(); m_config->write_entry("Mouse", "CursorTheme", theme_name); diff --git a/Userland/Services/WindowServer/WindowManager.h b/Userland/Services/WindowServer/WindowManager.h index cb3aec1d8c..ccfd363e06 100644 --- a/Userland/Services/WindowServer/WindowManager.h +++ b/Userland/Services/WindowServer/WindowManager.h @@ -150,6 +150,7 @@ public: Cursor const& move_cursor() const { return *m_move_cursor; } Cursor const& drag_cursor() const { return *m_drag_cursor; } Cursor const& wait_cursor() const { return *m_wait_cursor; } + Cursor const& eyedropper_cursor() const { return *m_eyedropper_cursor; } Gfx::Font const& font() const; Gfx::Font const& window_title_font() const; @@ -364,6 +365,7 @@ private: RefPtr m_drag_cursor; RefPtr m_wait_cursor; RefPtr m_crosshair_cursor; + RefPtr m_eyedropper_cursor; RefPtr m_overlay_rect_shadow;