mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +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;
|
internal GlobalPres() => IsActive = true;
|
||||||
|
|
||||||
[ObservableProperty, NotifyPropertyChangedRecipients]
|
[ObservableProperty, NotifyPropertyChangedRecipients]
|
||||||
private bool? isLightTheme = null;
|
private static bool? isLightTheme = null;
|
||||||
partial void OnIsLightThemeChanged(bool? value)
|
partial void OnIsLightThemeChanged(bool? value)
|
||||||
{
|
{
|
||||||
PaletteHelper paletteHelper = new();
|
PaletteHelper paletteHelper = new();
|
||||||
|
@ -4,14 +4,26 @@ using System.Windows;
|
|||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using Sheas_Cealer.Consts;
|
using Sheas_Cealer.Consts;
|
||||||
|
using Sheas_Cealer.Preses;
|
||||||
using Sheas_Cealer.Utils;
|
using Sheas_Cealer.Utils;
|
||||||
|
|
||||||
namespace Sheas_Cealer.Wins;
|
namespace Sheas_Cealer.Wins;
|
||||||
|
|
||||||
public partial class AboutWin : Window
|
public partial class AboutWin : Window
|
||||||
{
|
{
|
||||||
internal AboutWin() => InitializeComponent();
|
private static AboutPres? AboutPres;
|
||||||
protected override void OnSourceInitialized(EventArgs e) => IconRemover.RemoveIcon(this);
|
|
||||||
|
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)
|
private void AboutButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -54,7 +54,11 @@ public partial class MainWin : Window
|
|||||||
|
|
||||||
DataContext = MainPres = new(args);
|
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)
|
private async void MainWin_Loaded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
SettingsBox.Focus();
|
SettingsBox.Focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user