diff --git a/ControlPad/DataHandler.cs b/ControlPad/DataHandler.cs
index b9e07f7..d81a848 100644
--- a/ControlPad/DataHandler.cs
+++ b/ControlPad/DataHandler.cs
@@ -211,6 +211,7 @@ public static void LoadPreset(Preset preset, SettingsUserControl settingsUserCon
Settings.Load();
settingsUserControl.SetControls();
SettingsUserControl.ChangeAppTheme(Settings.SelectedThemeIndex);
+ settingsUserControl.ChangeAppBackground(Settings.SelectedBackgroundIndex);
}
}
}
diff --git a/ControlPad/Settings.cs b/ControlPad/Settings.cs
index 4d91cf4..0f5db58 100644
--- a/ControlPad/Settings.cs
+++ b/ControlPad/Settings.cs
@@ -16,6 +16,7 @@ public static class Settings
private static bool _minimizeToSystemTray = true;
private static double _translationExponent = 1d;
private static int _selectedThemeIndex = 0;
+ private static int _selectedBackgroundIndex = 3;
private static int _sliderDeadZone = 4;
static Settings()
@@ -73,6 +74,16 @@ public static int SelectedThemeIndex
}
}
+ public static int SelectedBackgroundIndex
+ {
+ get => _selectedBackgroundIndex;
+ set
+ {
+ _selectedBackgroundIndex = value;
+ Save();
+ }
+ }
+
public static int SliderDeadZone
{
get => _sliderDeadZone;
@@ -101,6 +112,7 @@ private class Data
public bool MinimizeToSystemTray { get; set; } = true;
public double TranslationExponent { get; set; } = 1d;
public int SelectedThemeIndex { get; set; } = 0;
+ public int SelectedBackgroundIndex { get; set; } = 3;
public int SliderDeadZone { get; set; } = 4;
}
@@ -121,6 +133,7 @@ public static void Load()
_startMinimized = data.StartMinimized;
_minimizeToSystemTray = data.MinimizeToSystemTray;
_selectedThemeIndex = data.SelectedThemeIndex;
+ _selectedBackgroundIndex = data.SelectedBackgroundIndex;
_sliderDeadZone = data.SliderDeadZone;
_translationExponent = data.TranslationExponent;
}
@@ -141,6 +154,7 @@ private static void Save()
StartMinimized = _startMinimized,
MinimizeToSystemTray = _minimizeToSystemTray,
SelectedThemeIndex = _selectedThemeIndex,
+ SelectedBackgroundIndex = _selectedBackgroundIndex,
SliderDeadZone = _sliderDeadZone,
TranslationExponent = _translationExponent,
};
diff --git a/ControlPad/UI Elements/SettingsUserControl.xaml b/ControlPad/UI Elements/SettingsUserControl.xaml
index de3e986..157614d 100644
--- a/ControlPad/UI Elements/SettingsUserControl.xaml
+++ b/ControlPad/UI Elements/SettingsUserControl.xaml
@@ -20,6 +20,7 @@
+
@@ -156,12 +157,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+