aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-09-11 14:29:14 -0400
committerKen Moore <ken@ixsystems.com>2017-09-11 14:29:14 -0400
commit20f4eae9ba21030e5f1758e4b4ce7b9449ad7cfd (patch)
tree3ccbdb6bc0dec3eb7a1e3377bb0190cdda7f6c65
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-20f4eae9ba21030e5f1758e4b4ce7b9449ad7cfd.tar.gz
lumina-20f4eae9ba21030e5f1758e4b4ce7b9449ad7cfd.tar.bz2
lumina-20f4eae9ba21030e5f1758e4b4ce7b9449ad7cfd.zip
Add support for a "desktop_stylesheets" config knob which will activated if the application loading the theme engine is called "lumina-desktop".
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengineplatformtheme.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengineplatformtheme.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengineplatformtheme.cpp
index 453bde1d..692223c7 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengineplatformtheme.cpp
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengineplatformtheme.cpp
@@ -211,7 +211,9 @@ void lthemeenginePlatformTheme::readSettings(){
}
//load style sheets
#ifdef QT_WIDGETS_LIB
- QStringList qssPaths = settings.value("stylesheets").toStringList();
+ QStringList qssPaths;
+ if(qApp->applicationName()=="lumina-desktop"){ qssPaths << settings.value("desktop_stylesheets").toStringList(); }
+ qssPaths << settings.value("stylesheets").toStringList();
m_userStyleSheet = loadStyleSheets(qssPaths);
#endif
settings.endGroup();
bgstack15