mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 06:52:52 +00:00
Everywhere: Support overriding the system color scheme
This commit is contained in:
parent
fba0cee622
commit
e9e4baee77
Notes:
sideshowbarker
2024-07-17 09:49:48 +09:00
Author: https://github.com/implicitfield
Commit: e9e4baee77
Pull-request: https://github.com/SerenityOS/serenity/pull/17228
Reviewed-by: https://github.com/networkException ✅
15 changed files with 161 additions and 30 deletions
|
@ -865,9 +865,9 @@ void ConnectionFromClient::set_accepts_drag(bool accepts)
|
|||
wm.set_accepts_drag(accepts);
|
||||
}
|
||||
|
||||
Messages::WindowServer::SetSystemThemeResponse ConnectionFromClient::set_system_theme(DeprecatedString const& theme_path, DeprecatedString const& theme_name, bool keep_desktop_background)
|
||||
Messages::WindowServer::SetSystemThemeResponse ConnectionFromClient::set_system_theme(DeprecatedString const& theme_path, DeprecatedString const& theme_name, bool keep_desktop_background, Optional<DeprecatedString> const& color_scheme_path)
|
||||
{
|
||||
bool success = WindowManager::the().update_theme(theme_path, theme_name, keep_desktop_background);
|
||||
bool success = WindowManager::the().update_theme(theme_path, theme_name, keep_desktop_background, color_scheme_path);
|
||||
return success;
|
||||
}
|
||||
|
||||
|
@ -897,6 +897,11 @@ Messages::WindowServer::IsSystemThemeOverriddenResponse ConnectionFromClient::is
|
|||
return WindowManager::the().is_theme_overridden();
|
||||
}
|
||||
|
||||
Messages::WindowServer::GetPreferredColorSchemeResponse ConnectionFromClient::get_preferred_color_scheme()
|
||||
{
|
||||
return WindowManager::the().get_preferred_color_scheme();
|
||||
}
|
||||
|
||||
void ConnectionFromClient::apply_cursor_theme(DeprecatedString const& name)
|
||||
{
|
||||
WindowManager::the().apply_cursor_theme(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue