コード例 #1
0
        protected RuntimeConfig()
        {
            CurrentAppsTheme   = RegistryHandler.AppsUseLightTheme() ? Theme.Light : Theme.Dark;
            CurrentSystemTheme = RegistryHandler.SystemUsesLightTheme() ? Theme.Light : Theme.Dark;

            try
            {
                CurrentEdgeTheme = RegistryHandler.EdgeUsesLightTheme() ? Theme.Light : Theme.Dark;
            }
            catch (Exception ex)
            {
                Logger.Error(ex, "could not retrieve edge theme key value");
                CurrentEdgeTheme = Theme.Undefined;
            }

            CurrentColorPrevalence  = RegistryHandler.IsColorPrevalence();
            CurrentWallpaperTheme   = Theme.Undefined;
            CurrentWindowsThemeName = ThemeHandler.GetCurrentThemeName();
            CurrentOfficeTheme      = Theme.Undefined;
            ForcedTheme             = Theme.Undefined;
            PostponeSwitch          = false;
        }