Fix dark mode detection on Linux

Fixes #7817
This commit is contained in:
felipdsa21 2022-09-16 19:58:48 -03:00 committed by Jonathan White
parent 5caf68988e
commit e7fe3ff968
2 changed files with 24 additions and 3 deletions

View file

@ -50,6 +50,7 @@ public:
}
private slots:
void handleColorSchemeRead(QDBusVariant value);
void handleColorSchemeChanged(QString ns, QString key, QDBusVariant value);
private:
@ -79,6 +80,9 @@ private:
PreferLight
};
ColorschemePref m_systemColorschemePref = ColorschemePref::PreferNone;
bool m_systemColorschemePrefExists;
void setColorScheme(QDBusVariant value);
Q_DISABLE_COPY(NixUtils)
};