diff --git a/ModAssistant/App.config b/ModAssistant/App.config
index b281c7c..2d7113d 100644
--- a/ModAssistant/App.config
+++ b/ModAssistant/App.config
@@ -44,6 +44,9 @@
+
+ Light
+
diff --git a/ModAssistant/Classes/Themes.cs b/ModAssistant/Classes/Themes.cs
index 81bc457..17e5a1e 100644
--- a/ModAssistant/Classes/Themes.cs
+++ b/ModAssistant/Classes/Themes.cs
@@ -71,6 +71,9 @@ namespace ModAssistant
Application.Current.Resources.MergedDictionaries.RemoveAt(0);
LoadedTheme = theme;
Application.Current.Resources.MergedDictionaries.Insert(0, newTheme);
+ Properties.Settings.Default.SelectedTheme = theme;
+ Properties.Settings.Default.Save();
+ MainWindow.Instance.MainText = $"Theme changed to {theme}.";
ReloadIcons();
}
else throw new ArgumentException($"{theme} does not exist.");
diff --git a/ModAssistant/MainWindow.xaml.cs b/ModAssistant/MainWindow.xaml.cs
index e60811f..4907cb0 100644
--- a/ModAssistant/MainWindow.xaml.cs
+++ b/ModAssistant/MainWindow.xaml.cs
@@ -63,7 +63,7 @@ namespace ModAssistant
Themes.LoadThemes();
try
{
- Themes.ApplyTheme("Light");
+ Themes.ApplyTheme(Properties.Settings.Default.SelectedTheme);
}
catch (ArgumentException)
{
diff --git a/ModAssistant/Properties/Settings.Designer.cs b/ModAssistant/Properties/Settings.Designer.cs
index 7fd2b22..54f6374 100644
--- a/ModAssistant/Properties/Settings.Designer.cs
+++ b/ModAssistant/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace ModAssistant.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.1.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.2.0.0")]
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -154,5 +154,17 @@ namespace ModAssistant.Properties {
this["LastTab"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("Light")]
+ public string SelectedTheme {
+ get {
+ return ((string)(this["SelectedTheme"]));
+ }
+ set {
+ this["SelectedTheme"] = value;
+ }
+ }
}
}
diff --git a/ModAssistant/Properties/Settings.settings b/ModAssistant/Properties/Settings.settings
index fb36c01..6f7793a 100644
--- a/ModAssistant/Properties/Settings.settings
+++ b/ModAssistant/Properties/Settings.settings
@@ -35,5 +35,8 @@
+
+ Light
+
\ No newline at end of file