mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 21:02:08 +08:00
1.1.3 -> 1.1.4 第15次更新
This commit is contained in:
parent
144de24013
commit
94581ee703
3
Preses/AboutPres.cs
Normal file
3
Preses/AboutPres.cs
Normal file
@ -0,0 +1,3 @@
|
||||
namespace Sheas_Cealer.Preses;
|
||||
|
||||
internal partial class AboutPres : GlobalPres;
|
@ -12,7 +12,7 @@ internal partial class GlobalPres : ObservableRecipient, IRecipient<PropertyChan
|
||||
internal GlobalPres() => IsActive = true;
|
||||
|
||||
[ObservableProperty, NotifyPropertyChangedRecipients]
|
||||
private bool? isLightTheme = null;
|
||||
private static bool? isLightTheme = null;
|
||||
partial void OnIsLightThemeChanged(bool? value)
|
||||
{
|
||||
PaletteHelper paletteHelper = new();
|
||||
|
@ -4,14 +4,26 @@ using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using Sheas_Cealer.Consts;
|
||||
using Sheas_Cealer.Preses;
|
||||
using Sheas_Cealer.Utils;
|
||||
|
||||
namespace Sheas_Cealer.Wins;
|
||||
|
||||
public partial class AboutWin : Window
|
||||
{
|
||||
internal AboutWin() => InitializeComponent();
|
||||
protected override void OnSourceInitialized(EventArgs e) => IconRemover.RemoveIcon(this);
|
||||
private static AboutPres? AboutPres;
|
||||
|
||||
internal AboutWin()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
AboutPres = new();
|
||||
}
|
||||
protected override void OnSourceInitialized(EventArgs e)
|
||||
{
|
||||
IconRemover.RemoveIcon(this);
|
||||
BorderThemeSetter.SetBorderTheme(this, AboutPres!.IsLightTheme);
|
||||
}
|
||||
|
||||
private void AboutButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
@ -54,7 +54,11 @@ public partial class MainWin : Window
|
||||
|
||||
DataContext = MainPres = new(args);
|
||||
}
|
||||
protected override void OnSourceInitialized(EventArgs e) => IconRemover.RemoveIcon(this);
|
||||
protected override void OnSourceInitialized(EventArgs e)
|
||||
{
|
||||
IconRemover.RemoveIcon(this);
|
||||
BorderThemeSetter.SetBorderTheme(this, MainPres!.IsLightTheme);
|
||||
}
|
||||
private async void MainWin_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
SettingsBox.Focus();
|
||||
|
Loading…
Reference in New Issue
Block a user