diff --git a/app/UI/CustomControls.cs b/app/UI/CustomControls.cs index cb7cbdc6..3b8a935c 100644 --- a/app/UI/CustomControls.cs +++ b/app/UI/CustomControls.cs @@ -62,6 +62,16 @@ namespace GHelper.UI private static bool IsDarkTheme() { + if (AppConfig.GetString("ui_mode").ToLower() == "dark") + { + return true; + } + + if (AppConfig.GetString("ui_mode").ToLower() == "light") + { + return false; + } + using var key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"); var registryValueObject = key?.GetValue("AppsUseLightTheme");