WindowServer+SystemMenu: Check the current system theme on startup

This commit is contained in:
Andreas Kling 2020-04-21 18:40:27 +02:00
commit 0fa7cf70b5
Notes: sideshowbarker 2024-07-19 07:24:44 +09:00
4 changed files with 13 additions and 0 deletions

View file

@ -730,6 +730,13 @@ OwnPtr<Messages::WindowServer::SetSystemThemeResponse> ClientConnection::handle(
return make<Messages::WindowServer::SetSystemThemeResponse>(success);
}
OwnPtr<Messages::WindowServer::GetSystemThemeResponse> ClientConnection::handle(const Messages::WindowServer::GetSystemTheme&)
{
auto wm_config = Core::ConfigFile::open("/etc/WindowServer/WindowServer.ini");
auto name = wm_config->read_entry("Theme", "Name");
return make<Messages::WindowServer::GetSystemThemeResponse>(name);
}
void ClientConnection::boost()
{
// FIXME: Re-enable this when we have a solution for boosting.