mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
WindowServer+MouseSettings: Toggle cursor highlighting with Super+H
Rather than enabling/disabling cursor highlighting by going into mouse settings, you can now instead toggle it any time with Super+H. Mouse settings now is only for customising the look of the highlighting.
This commit is contained in:
parent
3c2c6790df
commit
5caf307ec0
5 changed files with 46 additions and 48 deletions
|
@ -329,7 +329,7 @@ public:
|
|||
void set_cursor_highlight_radius(int radius);
|
||||
void set_cursor_highlight_color(Gfx::Color const& color);
|
||||
|
||||
bool is_cursor_highlight_enabled() const;
|
||||
bool is_cursor_highlight_enabled() const { return m_cursor_highlight_radius > 0 && m_cursor_highlight_enabled; }
|
||||
|
||||
private:
|
||||
explicit WindowManager(Gfx::PaletteImpl const&);
|
||||
|
@ -386,6 +386,7 @@ private:
|
|||
RefPtr<Cursor> m_zoom_cursor;
|
||||
int m_cursor_highlight_radius { 0 };
|
||||
Gfx::Color m_cursor_highlight_color;
|
||||
bool m_cursor_highlight_enabled { false };
|
||||
|
||||
RefPtr<MultiScaleBitmaps> m_overlay_rect_shadow;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue