mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
1.1.3 -> 1.1.4 第29次更新
This commit is contained in:
parent
038e9fe7e7
commit
be23d1bce8
@ -8,10 +8,10 @@
|
|||||||
<PackageReleaseNotes>Just Ceal It</PackageReleaseNotes>
|
<PackageReleaseNotes>Just Ceal It</PackageReleaseNotes>
|
||||||
<Authors>Space Time</Authors>
|
<Authors>Space Time</Authors>
|
||||||
<Company>Space Time</Company>
|
<Company>Space Time</Company>
|
||||||
<AssemblyVersion>1.1.3</AssemblyVersion>
|
<AssemblyVersion>1.1.4</AssemblyVersion>
|
||||||
<Version>1.1.3</Version>
|
<Version>1.1.4</Version>
|
||||||
<FileVersion>1.1.3</FileVersion>
|
<FileVersion>1.1.4</FileVersion>
|
||||||
<InformationalVersion>1.1.3</InformationalVersion>
|
<InformationalVersion>1.1.4</InformationalVersion>
|
||||||
<PackageTags>Tool;Sheas;Cealer;Sni</PackageTags>
|
<PackageTags>Tool;Sheas;Cealer;Sni</PackageTags>
|
||||||
<ApplicationIcon>Sheas-Cealer-Logo.ico</ApplicationIcon>
|
<ApplicationIcon>Sheas-Cealer-Logo.ico</ApplicationIcon>
|
||||||
<PackageIcon>Sheas Cealer Logo.png</PackageIcon>
|
<PackageIcon>Sheas Cealer Logo.png</PackageIcon>
|
||||||
|
@ -454,11 +454,23 @@ public partial class MainWin : Window
|
|||||||
|
|
||||||
PaletteHelper paletteHelper = new();
|
PaletteHelper paletteHelper = new();
|
||||||
Theme newTheme = paletteHelper.GetTheme();
|
Theme newTheme = paletteHelper.GetTheme();
|
||||||
|
Color newColor = Color.FromRgb((byte)random.Next(256), (byte)random.Next(256), (byte)random.Next(256));
|
||||||
|
bool isLightTheme = random.Next(2) == 0;
|
||||||
|
|
||||||
newTheme.SetPrimaryColor(Color.FromRgb((byte)random.Next(256), (byte)random.Next(256), (byte)random.Next(256)));
|
newTheme.SetPrimaryColor(newColor);
|
||||||
newTheme.SetBaseTheme(random.Next(2) == 0 ? BaseTheme.Light : BaseTheme.Dark);
|
newTheme.SetBaseTheme(isLightTheme ? BaseTheme.Light : BaseTheme.Dark);
|
||||||
paletteHelper.SetTheme(newTheme);
|
paletteHelper.SetTheme(newTheme);
|
||||||
|
|
||||||
|
foreach (Window currentWindow in Application.Current.Windows)
|
||||||
|
BorderThemeSetter.SetBorderTheme(currentWindow, isLightTheme);
|
||||||
|
|
||||||
|
Color? foregroundColor = ForegroundGenerator.GetForeground(newColor.R, newColor.G, newColor.B);
|
||||||
|
|
||||||
|
if (foregroundColor.HasValue)
|
||||||
|
Application.Current.Resources["MaterialDesignBackground"] = new SolidColorBrush(foregroundColor.Value);
|
||||||
|
else
|
||||||
|
Application.Current.Resources.Remove("MaterialDesignBackground");
|
||||||
|
|
||||||
if (GameFlashInterval > 100)
|
if (GameFlashInterval > 100)
|
||||||
GameFlashInterval += random.Next(1, 4);
|
GameFlashInterval += random.Next(1, 4);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user