diff --git a/Wins/MainWin.xaml.cs b/Wins/MainWin.xaml.cs index 61b7164..0d181b2 100644 --- a/Wins/MainWin.xaml.cs +++ b/Wins/MainWin.xaml.cs @@ -485,7 +485,7 @@ public partial class MainWin : Window newButtonStyle.Setters.Add(new Setter(Button.ForegroundProperty, newForegroundColor.HasValue ? new SolidColorBrush(newForegroundColor.Value) : new DynamicResourceExtension("MaterialDesignBackground"))); Application.Current.Resources[typeof(Button)] = newButtonStyle; - new GlobalPres().AccentForegroundColor = newAccentForegroundColor; + MainPres.AccentForegroundColor = newAccentForegroundColor; if (GameFlashInterval > 100) GameFlashInterval += random.Next(1, 4); diff --git a/Wins/SettingsWin.xaml.cs b/Wins/SettingsWin.xaml.cs index f7df759..982420f 100644 --- a/Wins/SettingsWin.xaml.cs +++ b/Wins/SettingsWin.xaml.cs @@ -50,7 +50,7 @@ public partial class SettingsWin : Window newButtonStyle.Setters.Add(new Setter(Button.ForegroundProperty, newForegroundColor.HasValue ? new SolidColorBrush(newForegroundColor.Value) : new DynamicResourceExtension("MaterialDesignBackground"))); Application.Current.Resources[typeof(Button)] = newButtonStyle; - new GlobalPres().AccentForegroundColor = newAccentForegroundColor; + SettingsPres.AccentForegroundColor = newAccentForegroundColor; Settings.Default.PrimaryColor = System.Drawing.Color.FromArgb(newPrimaryColor.A, newPrimaryColor.R, newPrimaryColor.G, newPrimaryColor.B); Settings.Default.Save();