2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use cppgir compatible XDP utilities API

This commit is contained in:
Ilya Fedin
2024-03-14 21:50:18 +04:00
committed by John Preston
parent 59e53c1edf
commit 3689e7dfbc
2 changed files with 4 additions and 4 deletions

View File

@@ -197,12 +197,12 @@ LinuxIntegration::LinuxIntegration()
, _darkModeWatcher(
"org.freedesktop.appearance",
"color-scheme",
[](uint value) {
[](GLib::Variant value) {
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
QWindowSystemInterface::handleThemeChange();
#else // Qt >= 6.5.0
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
Core::App().settings().setSystemDarkMode(value == 1);
Core::App().settings().setSystemDarkMode(value.get_uint32() == 1);
});
#endif // Qt < 6.5.0
}) {