qml Windows native style is broken on dark mode: switch to Fusion

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>
This commit is contained in:
Matthieu Gallien 2024-10-07 10:40:41 +02:00
parent cf1a6d75eb
commit 07958ce53f
No known key found for this signature in database
GPG key ID: 7D0F74F05C22F553

View file

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