qml Windows native style is broken on dark mode: switch to Fusion
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 7 Oct 2024 08:40:41 +0000 (10:40 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 7 Oct 2024 13:29:36 +0000 (15:29 +0200)
we will temporarily be using Fusion generic desktop style

Close https://github.com/nextcloud/desktop/issues/7215

see upstream Qt bug
https://bugreports.qt.io/browse/QTBUG-113469?focusedId=724929&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-724929

they apparently do not plan to fix Windows qml style to support dark
mode on Windows 11

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/main.cpp

index 2e7649fe6d78ee2b098bcb62465f9d1cfe34f4c8..e91fb3be9a1f45794104f71a628947a89a73a78e 100644 (file)
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
 #if defined Q_OS_MAC
     style = QStringLiteral("macOS");
 #elif defined Q_OS_WIN
-    style = QStringLiteral("Windows");
+    style = QStringLiteral("Fusion");
 #endif
 
     QQuickStyle::setStyle(style);