Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion launcher/MultiMC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,19 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
insertTheme(new SystemTheme());
insertTheme(darkTheme);
insertTheme(new BrightTheme());
insertTheme(new CustomTheme(darkTheme, "custom"));

QDirIterator it("themes", QDir::Dirs | QDir::NoDot | QDir::NoDotDot | QDir::Readable, QDirIterator::FollowSymlinks);
while (it.hasNext())
{
auto filepath = it.next();
QFileInfo file(filepath);
QString themeDir = file.baseName();
if(file.isDir())
{
qDebug() << "Found custom theme: " << themeDir;
insertTheme(new CustomTheme(darkTheme, themeDir));
}
}
qDebug() << "<> Widget themes initialized.";
}

Expand Down