Skip to content

Commit 165aa93

Browse files
capezotteCarterLi
authored andcommitted
QT: import kvantum theme name
1 parent d979f55 commit 165aa93

File tree

1 file changed

+13
-0
lines changed
  • src/detection/gtk_qt

1 file changed

+13
-0
lines changed

src/detection/gtk_qt/qt.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ static void detectLXQt(FFQtResult* result)
135135
ffParsePropFileConfig("pcmanfm-qt/lxqt/settings.conf", "Wallpaper=", &result->wallpaper);
136136
}
137137

138+
static void detectKvantum(FFQtResult* result)
139+
{
140+
ffParsePropFileConfigValues("Kvantum/kvantum.kvconfig", 1, (FFpropquery[]) {
141+
{"theme=", &result->widgetStyle},
142+
});
143+
}
144+
138145
const FFQtResult* ffDetectQt(void)
139146
{
140147
static FFQtResult result;
@@ -157,5 +164,11 @@ const FFQtResult* ffDetectQt(void)
157164
else if(ffStrbufIgnCaseEqualS(&wmde->dePrettyName, FF_DE_PRETTY_LXQT))
158165
detectLXQt(&result);
159166

167+
if(ffStrbufEqualS(&result.widgetStyle, "kvantum") || ffStrbufEqualS(&result.widgetStyle, "kvantum-dark"))
168+
{
169+
ffStrbufClear(&result.widgetStyle);
170+
detectKvantum(&result);
171+
}
172+
160173
return &result;
161174
}

0 commit comments

Comments
 (0)