1.1.3 -> 1.1.4 第52次更新

This commit is contained in:
Space Time 2024-12-11 22:15:36 +08:00
parent 21964c0e76
commit 753b53bc17
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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();