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 c49669f9d7
commit 513a4bf46e

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);