diff --git a/Artemis/Artemis/App.xaml b/Artemis/Artemis/App.xaml
index 2221243e0..0adfe9d47 100644
--- a/Artemis/Artemis/App.xaml
+++ b/Artemis/Artemis/App.xaml
@@ -15,7 +15,6 @@
-
diff --git a/Artemis/Artemis/Settings/GeneralSettings.cs b/Artemis/Artemis/Settings/GeneralSettings.cs
index 2314b2b1a..4101769ad 100644
--- a/Artemis/Artemis/Settings/GeneralSettings.cs
+++ b/Artemis/Artemis/Settings/GeneralSettings.cs
@@ -10,11 +10,11 @@ namespace Artemis.Settings
{
public class GeneralSettings
{
- private readonly Accent _artemisAccent = ThemeManager.GetAccent("Teal");
- private readonly Accent _corsairAccent = new Accent("CorsairYellow",
- new Uri("pack://application:,,,/Styles/Accents/CorsairYellow.xaml"));
- private readonly AppTheme _darkTheme = ThemeManager.GetAppTheme("BaseDark");
- private readonly AppTheme _lightTheme = ThemeManager.GetAppTheme("BaseLight");
+ public GeneralSettings()
+ {
+ ThemeManager.AddAccent("CorsairYellow", new Uri("pack://application:,,,/Styles/Accents/CorsairYellow.xaml"));
+ ApplyTheme();
+ }
public int GamestatePort
{
@@ -105,22 +105,25 @@ namespace Artemis.Settings
ApplyGamestatePort();
}
- // TODO: http://visionarycoder.com/2015/01/06/setting-themeaccent-with-mahapps-metro/
private void ApplyTheme()
{
switch (Theme)
{
case "Light":
- ThemeManager.ChangeAppStyle(Application.Current, _artemisAccent, _lightTheme);
+ ThemeManager.ChangeAppStyle(Application.Current, ThemeManager.GetAccent("Teal"),
+ ThemeManager.GetAppTheme("BaseLight"));
break;
case "Dark":
- ThemeManager.ChangeAppStyle(Application.Current, _artemisAccent, _darkTheme);
+ ThemeManager.ChangeAppStyle(Application.Current, ThemeManager.GetAccent("Teal"),
+ ThemeManager.GetAppTheme("BaseDark"));
break;
case "Corsair Light":
- ThemeManager.ChangeAppStyle(Application.Current, _corsairAccent, _lightTheme);
+ ThemeManager.ChangeAppStyle(Application.Current, ThemeManager.GetAccent("CorsairYellow"),
+ ThemeManager.GetAppTheme("BaseLight"));
break;
case "Corsair Dark":
- ThemeManager.ChangeAppStyle(Application.Current, _corsairAccent, _darkTheme);
+ ThemeManager.ChangeAppStyle(Application.Current, ThemeManager.GetAccent("CorsairYellow"),
+ ThemeManager.GetAppTheme("BaseDark"));
break;
}
}
diff --git a/Artemis/Artemis/Styles/Accents/CorsairYellow.xaml b/Artemis/Artemis/Styles/Accents/CorsairYellow.xaml
index 11f3b8d03..47be7f224 100644
--- a/Artemis/Artemis/Styles/Accents/CorsairYellow.xaml
+++ b/Artemis/Artemis/Styles/Accents/CorsairYellow.xaml
@@ -8,13 +8,13 @@
#FFF0CF1E
- #FFF0CF1E
+ #CDF0CF1E
- #FFF0CF1E
+ #99F0CF1E
- #FFF0CF1E
+ #66F0CF1E
- #FFF0CF1E
+ #32F0CF1E