summaryrefslogtreecommitdiff
path: root/Userland/Services/Taskbar/main.cpp
diff options
context:
space:
mode:
authorBen Maxwell <macdue@dueutil.tech>2022-04-03 10:51:54 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-03 12:58:46 +0200
commit8070a982887be775ee657798452248ce42506d21 (patch)
treee9b781a33cb2b5ca856c445bbb785f61c5b2c658 /Userland/Services/Taskbar/main.cpp
parente6ad55ab5328dc2bb5538c2ed7469b2a973f12ee (diff)
downloadserenity-8070a982887be775ee657798452248ce42506d21.zip
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.
Diffstat (limited to 'Userland/Services/Taskbar/main.cpp')
-rw-r--r--Userland/Services/Taskbar/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<NonnullRefPtr<GUI::Menu>> 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)