From 753b53bc178e01fa37e124a775d9b47e1fb81ffe Mon Sep 17 00:00:00 2001 From: Space Time Date: Wed, 11 Dec 2024 22:15:36 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3=20->=201.1.4=20=E7=AC=AC52=E6=AC=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Wins/MainWin.xaml.cs | 2 +- Wins/SettingsWin.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();