GH-378 add a resource search path to custom themes
This allows adding images and other bits and pieces to themes.
This commit is contained in:
parent
bc753859b5
commit
37cc59c04d
4 changed files with 14 additions and 1 deletions
|
@ -1027,6 +1027,7 @@ void MultiMC::setApplicationTheme(const QString& name)
|
|||
auto & theme = (*themeIter).second;
|
||||
setStyle(QStyleFactory::create(theme->qtTheme()));
|
||||
setPalette(theme->colorScheme());
|
||||
QDir::setSearchPaths("theme", theme->searchPaths());
|
||||
setStyleSheet(theme->appStyleSheet());
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue