From 21964c0e76dc751967093b0089a81fd12cb25d71 Mon Sep 17 00:00:00 2001 From: Space Time Date: Wed, 11 Dec 2024 22:11:09 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3=20->=201.1.4=20=E7=AC=AC51=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 --- App.xaml.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/App.xaml.cs b/App.xaml.cs index dac81c3..2a969be 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -15,8 +15,6 @@ public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { - SettingsPres settingsPres = new(); - #region Primary Color PaletteHelper paletteHelper = new(); Theme newTheme = paletteHelper.GetTheme(); @@ -43,7 +41,7 @@ public partial class App : Application newButtonStyle.Setters.Add(new Setter(Button.ForegroundProperty, newForegroundColor.HasValue ? new SolidColorBrush(newForegroundColor.Value) : new DynamicResourceExtension("MaterialDesignBackground"))); Current.Resources[typeof(Button)] = newButtonStyle; - settingsPres.AccentForegroundColor = newAccentForegroundColor; + new SettingsPres().AccentForegroundColor = newAccentForegroundColor; #endregion Foreground Color new MainWin(e.Args).Show();