switch folder wizar to modern style to avoid borken windows dark mode
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 7 Oct 2024 11:51:41 +0000 (13:51 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 7 Oct 2024 13:30:18 +0000 (15:30 +0200)
the QWizard AeroStyle style is broken on windows dark mode, switch to
ModernStyle that is working fine

see upstream Qt bug: https://bugreports.qt.io/browse/QTBUG-123853

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

index 7b4d35ba03f369e1c75214a87f72f3069dae59bb..3b8ac7aac9a9df551f618ea56178e4ec76be641d 100644 (file)
@@ -670,6 +670,7 @@ FolderWizard::FolderWizard(AccountPtr account, QWidget *parent)
     , _folderWizardSourcePage(new FolderWizardLocalPath(account))
     , _folderWizardSelectiveSyncPage(new FolderWizardSelectiveSync(account))
 {
+    setWizardStyle(QWizard::ModernStyle);
     setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
     setPage(Page_Source, _folderWizardSourcePage);
     _folderWizardSourcePage->installEventFilter(this);