diff --git a/src/Wpf.Ui/Appearance/SystemThemeManager.cs b/src/Wpf.Ui/Appearance/SystemThemeManager.cs index de7bff5a7..193d10052 100644 --- a/src/Wpf.Ui/Appearance/SystemThemeManager.cs +++ b/src/Wpf.Ui/Appearance/SystemThemeManager.cs @@ -115,12 +115,16 @@ private static SystemTheme GetCurrentSystemTheme() "HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "AppsUseLightTheme", 1 - ) ?? 1; + ); if (rawAppsUseLightTheme is 0) { return SystemTheme.Dark; } + else if (rawAppsUseLightTheme is 1) + { + return SystemTheme.Light; + } var rawSystemUsesLightTheme = Registry.GetValue(