From 912c9917b3137a92840910aa98efd7d5e9a03bbb Mon Sep 17 00:00:00 2001 From: DB p Date: Fri, 28 Feb 2025 12:19:19 +0900 Subject: [PATCH] Fix theme.cs --- Flow.Launcher.Core/Resource/Theme.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher.Core/Resource/Theme.cs b/Flow.Launcher.Core/Resource/Theme.cs index 2050bd3a4..34bbd8e68 100644 --- a/Flow.Launcher.Core/Resource/Theme.cs +++ b/Flow.Launcher.Core/Resource/Theme.cs @@ -149,7 +149,7 @@ namespace Flow.Launcher.Core.Resource { //SetWindowAccent(); - var dict = GetThemeResourceDictionary(Settings.Theme); + var dict = GetThemeResourceDictionary(_settings.Theme); if (dict == null) return; @@ -183,7 +183,7 @@ namespace Flow.Launcher.Core.Resource // WindowBorderStyle에서 Background 색상 가져오는 함수 private Color GetWindowBorderStyleBackground() { - var Resources = GetThemeResourceDictionary(Settings.Theme); + var Resources = GetThemeResourceDictionary(_settings.Theme); var windowBorderStyle = (Style)Resources["WindowBorderStyle"]; var backgroundSetter = windowBorderStyle.Setters @@ -225,7 +225,7 @@ namespace Flow.Launcher.Core.Resource public void ThemeModeColor(string Mode) { - var dict = GetThemeResourceDictionary(Settings.Theme); + var dict = GetThemeResourceDictionary(_settings.Theme); Color lightBG; Color darkBG; @@ -256,7 +256,7 @@ namespace Flow.Launcher.Core.Resource if (Mode == "Auto") { int themeValue = (int)Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize", "AppsUseLightTheme", 1); - string colorScheme = Settings.ColorScheme; + string colorScheme = _settings.ColorScheme; bool isDarkMode = themeValue == 0; // 0이면 다크 모드 if (colorScheme == "System") {