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