From 20f4eae9ba21030e5f1758e4b4ce7b9449ad7cfd Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 11 Sep 2017 14:29:14 -0400 Subject: Add support for a "desktop_stylesheets" config knob which will activated if the application loading the theme engine is called "lumina-desktop". --- .../src/lthemeengine-qtplugin/lthemeengineplatformtheme.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src-qt5/core/lumina-theme-engine/src') 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(); -- cgit