diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-06 04:29:12 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-06 04:29:12 +0100 |
commit | bc753859b5ab5d1402940024c0478548165b57f8 (patch) | |
tree | 4d067325767b6100f1483115e5547a80ef14a4da /application/MultiMC.cpp | |
parent | 13b575f7a90ef97f3b30f2a2f74bd19d58d375e7 (diff) | |
download | MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.gz MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.lz MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.xz MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.zip |
GH-378 add basic custom theme support
Files you can customize are created in themes/custom/
Diffstat (limited to 'application/MultiMC.cpp')
-rw-r--r-- | application/MultiMC.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <iostream> #include <QDir> @@ -1010,9 +1011,11 @@ void MultiMC::initThemes() { m_themes.insert(std::make_pair(theme->id(), std::unique_ptr<ITheme>(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) |