From 93a422ca9bcad622cbc0721f691df3c55a72003b Mon Sep 17 00:00:00 2001 From: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:44:53 +0100 Subject: [PATCH] [Settings] Fix reacting to theme change (#30326) --- .../Settings.UI/SettingsXAML/App.xaml.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/settings-ui/Settings.UI/SettingsXAML/App.xaml.cs b/src/settings-ui/Settings.UI/SettingsXAML/App.xaml.cs index 4a43697c71..46cd4d7e0e 100644 --- a/src/settings-ui/Settings.UI/SettingsXAML/App.xaml.cs +++ b/src/settings-ui/Settings.UI/SettingsXAML/App.xaml.cs @@ -294,8 +294,6 @@ namespace Microsoft.PowerToys.Settings.UI ThemeHelpers.SetImmersiveDarkMode(hWnd, isDark); } - SetContentTheme(isDark); - if (SelectedTheme() == ElementTheme.Default) { themeListener = new ThemeListener(); @@ -342,18 +340,6 @@ namespace Microsoft.PowerToys.Settings.UI return 0; } - public static void SetContentTheme(bool isDark) - { - if (isDark) - { - App.Current.RequestedTheme = ApplicationTheme.Dark; - } - else - { - App.Current.RequestedTheme = ApplicationTheme.Light; - } - } - private static ISettingsUtils settingsUtils = new SettingsUtils(); private static MainWindow settingsWindow;