mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Theme (QT): ignore QVariant format (#1054)
Closes: #1053 --------- Co-authored-by: Carter Li <CarterLi@users.noreply.github.com>
This commit is contained in:
@@ -144,11 +144,16 @@ static void detectQtCt(char qver, FFQtResult* result)
|
||||
ffParsePropFileConfigValues(file, 3, (FFpropquery[]) {
|
||||
{"style=", &result->widgetStyle},
|
||||
{"icon_theme=", &result->icons},
|
||||
// FIXME: on older versions this was hex-encoded binary format
|
||||
// (See QVariant notes on https://doc.qt.io/qt-5/qsettings.html)
|
||||
// Thankfully, newer versions use the more common font encoding.
|
||||
{"general=", &result->font}
|
||||
});
|
||||
|
||||
if (ffStrbufStartsWithC(&result->font, '@'))
|
||||
{
|
||||
// See QVariant notes on https://doc.qt.io/qt-5/qsettings.html and
|
||||
// https://github.com/fastfetch-cli/fastfetch/issues/1053#issuecomment-2197254769
|
||||
// Thankfully, newer versions use the more common font encoding.
|
||||
ffStrbufSetNS(&result->font, 5, file);
|
||||
}
|
||||
}
|
||||
|
||||
static void detectKvantum(FFQtResult* result)
|
||||
|
||||
Reference in New Issue
Block a user