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:
parent
fba0cee622
commit
e9e4baee77
15 changed files with 161 additions and 30 deletions
|
@ -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());
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue