From bc753859b5ab5d1402940024c0478548165b57f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 6 Nov 2016 04:29:12 +0100 Subject: GH-378 add basic custom theme support Files you can customize are created in themes/custom/ --- application/MultiMC.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'application/MultiMC.cpp') diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index 969e54e5..9ccd0895 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -15,6 +15,7 @@ #include "themes/SystemTheme.h" #include "themes/DarkTheme.h" #include "themes/BrightTheme.h" +#include "themes/CustomTheme.h" #include #include @@ -1010,9 +1011,11 @@ void MultiMC::initThemes() { m_themes.insert(std::make_pair(theme->id(), std::unique_ptr(theme))); }; + auto darkTheme = new DarkTheme(); insertTheme(new SystemTheme()); - insertTheme(new DarkTheme()); + insertTheme(darkTheme); insertTheme(new BrightTheme()); + insertTheme(new CustomTheme(darkTheme, "custom")); } void MultiMC::setApplicationTheme(const QString& name) -- cgit v1.2.3