Beispiel #1
0
        /// <summary>
        /// Sets the appearance of the application as per user prefernce.
        /// </summary>
        private void SetUserPreference()
        {
            string accent = AppData.LoggedInUser.SelectedAccent ?? AppearanceManager.GetApplicationAccent();
            string theme  = AppData.LoggedInUser.SelectedTheme ?? AppearanceManager.GetApplicationTheme();

            AppearanceManager.ChangeAccent(accent);
            AppearanceManager.ChangeTheme(theme);
            //Set the defaults in settings view too!
            SettingsView.SetDefaultSettings(AppearanceManager.GetApplicationTheme(), AppearanceManager.GetApplicationAccent());
        }
 /// <summary>
 /// Sets the requested theme to the application's appearance.
 /// </summary>
 private void ThemeChangeRequested()
 {
     AppearanceManager.ChangeTheme(SelectedTheme);
     PromptUserToSaveAppearance();
 }