예제 #1
0
 /// <summary>
 /// ナイトモードを適用します。
 /// </summary>
 private void ApplyNightMode()
 {
     _settingHolder.Update(s => s.IsNightMode = IsNightMode);
     ThemeManager.ModifyTheme(theme => theme.SetBaseTheme(IsNightMode ? Theme.Dark : Theme.Light));
 }
예제 #2
0
 private void ApplyPrimary(Swatch swatch)
 {
     _sm.Update(s => s.ColorPrimary = swatch);
     ThemeManager.ModifyTheme(theme => theme.SetPrimaryColor(swatch.ExemplarHue.Color));
 }