GH-378 add basic custom theme support

Files you can customize are created in themes/custom/
This commit is contained in:
Petr Mrázek
2016-11-06 04:29:12 +01:00
parent 13b575f7a9
commit bc753859b5
15 changed files with 335 additions and 40 deletions

View File

@ -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)