diff options
author | flow <flowlnlnln@gmail.com> | 2022-12-12 13:28:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 13:28:24 -0800 |
commit | aaef4489593e56cf2a8cbd94bb882c7114c93512 (patch) | |
tree | 6572b419e4cd30a046d78bb78becc44ba522c3e6 | |
parent | 15084c8d6d29b799506e4747b1223a6d4eca53eb (diff) | |
parent | 7e96077ed76d562d8b3c4988c67cfb97a111e879 (diff) | |
download | PrismLauncher-aaef4489593e56cf2a8cbd94bb882c7114c93512.tar.gz PrismLauncher-aaef4489593e56cf2a8cbd94bb882c7114c93512.tar.bz2 PrismLauncher-aaef4489593e56cf2a8cbd94bb882c7114c93512.zip |
Merge pull request #600 from TheLastRar/reset-stylesheet
Resolves https://github.com/PrismLauncher/PrismLauncher/issues/510
-rw-r--r-- | launcher/ui/themes/ITheme.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/launcher/ui/themes/ITheme.cpp b/launcher/ui/themes/ITheme.cpp index 7247b444..8bfc466d 100644 --- a/launcher/ui/themes/ITheme.cpp +++ b/launcher/ui/themes/ITheme.cpp @@ -6,19 +6,14 @@ void ITheme::apply(bool) { + APPLICATION->setStyleSheet(QString()); QApplication::setStyle(QStyleFactory::create(qtTheme())); - if(hasColorScheme()) - { + if (hasColorScheme()) { QApplication::setPalette(colorScheme()); } - if(hasStyleSheet()) - { + if (hasStyleSheet()) APPLICATION->setStyleSheet(appStyleSheet()); - } - else - { - APPLICATION->setStyleSheet(QString()); - } + QDir::setSearchPaths("theme", searchPaths()); } |