aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/themes/ITheme.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-12-14 23:22:27 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-12-14 23:22:27 +0100
commit849b92665e0762a38a7e17403015e2b037318aec (patch)
tree2fbeac111297727aa6613aacc08e80dcec5c3724 /launcher/ui/themes/ITheme.cpp
parentfdbd8d9d2b2e04cd68fd800882309b40c05aba2c (diff)
parentd193ed9eebb392b259edb88a227dce4cee773df6 (diff)
downloadPrismLauncher-849b92665e0762a38a7e17403015e2b037318aec.tar.gz
PrismLauncher-849b92665e0762a38a7e17403015e2b037318aec.tar.bz2
PrismLauncher-849b92665e0762a38a7e17403015e2b037318aec.zip
Merge branch 'develop' into remove-updater
Diffstat (limited to 'launcher/ui/themes/ITheme.cpp')
-rw-r--r--launcher/ui/themes/ITheme.cpp13
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());
}