GH-378 add basic custom theme support
Files you can customize are created in themes/custom/
This commit is contained in:
parent
13b575f7a9
commit
bc753859b5
15 changed files with 335 additions and 40 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue