/// <summary>
 /// Change theme to system
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void ThemeChanger(UISettings sender, object args)
 {
     if (SettingsService.Instance.UseSystemAppTheme)
     {
         ThemeSelectorService.SetTheme(AppThemes.Dark);
     }
 }
Exemple #2
0
 private void OnChecked(object sender, RoutedEventArgs e)
 {
     if (sender is FrameworkElement radioButton)
     {
         var theme = (AppTheme)Enum.Parse(typeof(AppTheme), radioButton.Tag.ToString());
         ThemeSelectorService.SetTheme(theme);
     }
 }