mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
WindowServer: Add support for cursor themes
Now you can specify a CursorTheme key in /etc/WindowServer.ini. The cursors are loaded from /res/cursor-themes/<name> directory. This directory contains a Config.ini file with format similar to previous Cursor section, except it uses relative paths. This commit adds also Default theme, which uses cursors being previously in /res/cursors. The WidgetGallery is updated to match the new cursor path format.
This commit is contained in:
parent
7d579b04c5
commit
040a723f1f
30 changed files with 71 additions and 53 deletions
|
@ -315,9 +315,9 @@ public:
|
|||
|
||||
MultiScaleBitmaps const* overlay_rect_shadow() const { return m_overlay_rect_shadow.ptr(); }
|
||||
|
||||
private:
|
||||
RefPtr<Cursor> get_cursor(String const& name);
|
||||
void apply_cursor_theme(String const& name);
|
||||
|
||||
private:
|
||||
void notify_new_active_window(Window&);
|
||||
void notify_new_active_input_window(Window&);
|
||||
void notify_previous_active_window(Window&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue