From 8070a982887be775ee657798452248ce42506d21 Mon Sep 17 00:00:00 2001 From: Ben Maxwell Date: Sun, 3 Apr 2022 10:51:54 +0100 Subject: DisplaySettings+WindowServer: Allow updating theme without background With this change you can now set the theme and background color at the same time in the Display Settings. Before if both were changed before hitting 'apply' the theme background color would overwrite the custom background. --- Userland/Services/Taskbar/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Services/Taskbar/main.cpp') diff --git a/Userland/Services/Taskbar/main.cpp b/Userland/Services/Taskbar/main.cpp index 5d3f66376a..4150145aa0 100644 --- a/Userland/Services/Taskbar/main.cpp +++ b/Userland/Services/Taskbar/main.cpp @@ -217,7 +217,7 @@ ErrorOr> build_system_menu() auto action = GUI::Action::create_checkable(theme.name, [theme_identifier](auto&) { auto& theme = g_themes[theme_identifier]; dbgln("Theme switched to {} at path {}", theme.name, theme.path); - auto success = GUI::ConnectionToWindowServer::the().set_system_theme(theme.path, theme.name); + auto success = GUI::ConnectionToWindowServer::the().set_system_theme(theme.path, theme.name, false); VERIFY(success); }); if (theme.name == current_theme_name) -- cgit v1.2.3