1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

Everywhere: Support overriding the system color scheme

This commit is contained in:
implicitfield 2023-02-12 15:48:23 +02:00 committed by Andreas Kling
parent fba0cee622
commit e9e4baee77
15 changed files with 161 additions and 30 deletions

View file

@ -414,6 +414,8 @@ void MainWidget::build_override_controls()
auto encoded = encode();
if (encoded.is_error())
return;
// Empty the color scheme path to signal that it exists only in memory.
m_current_palette.path(Gfx::PathRole::ColorScheme) = "";
GUI::ConnectionToWindowServer::the().async_set_system_theme_override(encoded.value());
};