1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:07:36 +00:00

WindowServer: Allow temporarily overriding the system theme

This patch adds a new api to override the current system theme with an
in memory override theme.
This commit is contained in:
networkException 2022-06-16 20:25:01 +02:00 committed by Linus Groh
parent 278fd28502
commit 976b6156d4
5 changed files with 66 additions and 0 deletions

View file

@ -129,6 +129,11 @@ endpoint WindowServer
get_system_theme() => ([UTF8] String theme_name)
refresh_system_theme() =|
set_system_theme_override(Core::AnonymousBuffer buffer) => (bool success)
get_system_theme_override() => (Optional<Core::AnonymousBuffer> buffer)
clear_system_theme_override() =|
is_system_theme_overridden() => (bool overridden)
apply_cursor_theme(String name) =|
get_cursor_theme() => (String name)