diff options
author | Ken Moore <ken@ixsystems.com> | 2017-09-11 14:29:14 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-09-11 14:29:14 -0400 |
commit | 20f4eae9ba21030e5f1758e4b4ce7b9449ad7cfd (patch) | |
tree | 3ccbdb6bc0dec3eb7a1e3377bb0190cdda7f6c65 /src-qt5/core/lumina-theme-engine | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-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".
Diffstat (limited to 'src-qt5/core/lumina-theme-engine')
-rw-r--r-- | src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengineplatformtheme.cpp | 4 |
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(); |