예제 #1
0
 /// <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);
     }
 }
예제 #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);
     }
 }