Пример #1
0
        private void ApplyTheme()
        {
            if (ActiveBaseColor == null || ActiveColorScheme == null)
            {
                return;
            }

            ThemeManager.ApplyColorScheme(ActiveBaseColor, ActiveColorScheme);

            GlobalSettings.Default.ThemeBaseColor = ActiveBaseColor;
            GlobalSettings.Default.ThemeAccent    = ActiveColorScheme?.Name;

            Log.Information("applied theme {BaseColor}/{Accent}", ActiveBaseColor, ActiveColorScheme.Name);
        }