1.1.3 -> 1.1.4 第51次更新

This commit is contained in:
Space Time 2024-12-11 22:11:09 +08:00
parent ef997ad840
commit 21964c0e76

View File

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