mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
1.1.3 -> 1.1.4 第51次更新
This commit is contained in:
parent
ef997ad840
commit
21964c0e76
@ -15,8 +15,6 @@ public partial class App : Application
|
|||||||
{
|
{
|
||||||
protected override void OnStartup(StartupEventArgs e)
|
protected override void OnStartup(StartupEventArgs e)
|
||||||
{
|
{
|
||||||
SettingsPres settingsPres = new();
|
|
||||||
|
|
||||||
#region Primary Color
|
#region Primary Color
|
||||||
PaletteHelper paletteHelper = new();
|
PaletteHelper paletteHelper = new();
|
||||||
Theme newTheme = paletteHelper.GetTheme();
|
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")));
|
newButtonStyle.Setters.Add(new Setter(Button.ForegroundProperty, newForegroundColor.HasValue ? new SolidColorBrush(newForegroundColor.Value) : new DynamicResourceExtension("MaterialDesignBackground")));
|
||||||
Current.Resources[typeof(Button)] = newButtonStyle;
|
Current.Resources[typeof(Button)] = newButtonStyle;
|
||||||
|
|
||||||
settingsPres.AccentForegroundColor = newAccentForegroundColor;
|
new SettingsPres().AccentForegroundColor = newAccentForegroundColor;
|
||||||
#endregion Foreground Color
|
#endregion Foreground Color
|
||||||
|
|
||||||
new MainWin(e.Args).Show();
|
new MainWin(e.Args).Show();
|
||||||
|
Loading…
Reference in New Issue
Block a user