mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 12:52:08 +08:00
1.1.4 (beta) 更新
This commit is contained in:
parent
1e310cc69d
commit
536a498e65
@ -15,6 +15,15 @@ public partial class App : Application
|
|||||||
{
|
{
|
||||||
protected override void OnStartup(StartupEventArgs e)
|
protected override void OnStartup(StartupEventArgs e)
|
||||||
{
|
{
|
||||||
|
#region Upgrade Settings
|
||||||
|
if (Settings.Default.IsUpgradeRequired)
|
||||||
|
{
|
||||||
|
Settings.Default.Upgrade();
|
||||||
|
Settings.Default.IsUpgradeRequired = false;
|
||||||
|
Settings.Default.Save();
|
||||||
|
}
|
||||||
|
#endregion Upgrade Settings
|
||||||
|
|
||||||
#region Primary Color
|
#region Primary Color
|
||||||
PaletteHelper paletteHelper = new();
|
PaletteHelper paletteHelper = new();
|
||||||
Theme newTheme = paletteHelper.GetTheme();
|
Theme newTheme = paletteHelper.GetTheme();
|
||||||
|
36
Props/Settings.Designer.cs
generated
36
Props/Settings.Designer.cs
generated
@ -59,6 +59,18 @@ namespace Sheas_Cealer.Props {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("244, 67, 54")]
|
||||||
|
public global::System.Drawing.Color PrimaryColor {
|
||||||
|
get {
|
||||||
|
return ((global::System.Drawing.Color)(this["PrimaryColor"]));
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
this["PrimaryColor"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("-1")]
|
[global::System.Configuration.DefaultSettingValueAttribute("-1")]
|
||||||
@ -83,18 +95,6 @@ namespace Sheas_Cealer.Props {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("244, 67, 54")]
|
|
||||||
public global::System.Drawing.Color PrimaryColor {
|
|
||||||
get {
|
|
||||||
return ((global::System.Drawing.Color)(this["PrimaryColor"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["PrimaryColor"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("-1")]
|
[global::System.Configuration.DefaultSettingValueAttribute("-1")]
|
||||||
@ -106,5 +106,17 @@ namespace Sheas_Cealer.Props {
|
|||||||
this["IsLightWeight"] = value;
|
this["IsLightWeight"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||||
|
public bool IsUpgradeRequired {
|
||||||
|
get {
|
||||||
|
return ((bool)(this["IsUpgradeRequired"]));
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
this["IsUpgradeRequired"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,17 +11,20 @@
|
|||||||
<Setting Name="ExtraArgs" Type="System.String" Scope="User">
|
<Setting Name="ExtraArgs" Type="System.String" Scope="User">
|
||||||
<Value Profile="(Default)" />
|
<Value Profile="(Default)" />
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="PrimaryColor" Type="System.Drawing.Color" Scope="User">
|
||||||
|
<Value Profile="(Default)">244, 67, 54</Value>
|
||||||
|
</Setting>
|
||||||
<Setting Name="IsLightTheme" Type="System.SByte" Scope="User">
|
<Setting Name="IsLightTheme" Type="System.SByte" Scope="User">
|
||||||
<Value Profile="(Default)">-1</Value>
|
<Value Profile="(Default)">-1</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="IsEnglishLang" Type="System.SByte" Scope="User">
|
<Setting Name="IsEnglishLang" Type="System.SByte" Scope="User">
|
||||||
<Value Profile="(Default)">-1</Value>
|
<Value Profile="(Default)">-1</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="PrimaryColor" Type="System.Drawing.Color" Scope="User">
|
|
||||||
<Value Profile="(Default)">244, 67, 54</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="IsLightWeight" Type="System.SByte" Scope="User">
|
<Setting Name="IsLightWeight" Type="System.SByte" Scope="User">
|
||||||
<Value Profile="(Default)">-1</Value>
|
<Value Profile="(Default)">-1</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="IsUpgradeRequired" Type="System.Boolean" Scope="User">
|
||||||
|
<Value Profile="(Default)">True</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
Loading…
Reference in New Issue
Block a user