From cc8be6ab22bc6bc8edca1453e3288a52021fc047 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 7 Oct 2024 13:51:41 +0200 Subject: [PATCH 1/2] switch folder wizar to modern style to avoid borken windows dark mode 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 --- src/gui/folderwizard.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp index d73500a0b954e..3d3efa2b1fa16 100644 --- a/src/gui/folderwizard.cpp +++ b/src/gui/folderwizard.cpp @@ -669,6 +669,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); From 730e3386eff55f181075d9ebe53c6037b57f2e31 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 7 Oct 2024 14:04:48 +0200 Subject: [PATCH 2/2] remove hard coded white color in elements of folder wizard fix broken white backgrounds in folder wizard when using Windows dark mode Signed-off-by: Matthieu Gallien --- src/gui/folderwizardsourcepage.ui | 64 ------------------------------- src/gui/folderwizardtargetpage.ui | 64 ------------------------------- 2 files changed, 128 deletions(-) diff --git a/src/gui/folderwizardsourcepage.ui b/src/gui/folderwizardsourcepage.ui index 90031d411f9c5..94af3645a594f 100644 --- a/src/gui/folderwizardsourcepage.ui +++ b/src/gui/folderwizardsourcepage.ui @@ -52,70 +52,6 @@ - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 192 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 192 - - - - - - - - - 255 - 255 - 192 - - - - - - - 255 - 255 - 192 - - - - - - true diff --git a/src/gui/folderwizardtargetpage.ui b/src/gui/folderwizardtargetpage.ui index ebe44657611c9..4e53902aba6b2 100644 --- a/src/gui/folderwizardtargetpage.ui +++ b/src/gui/folderwizardtargetpage.ui @@ -19,70 +19,6 @@ - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 153 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 153 - - - - - - - - - 255 - 255 - 153 - - - - - - - 255 - 255 - 153 - - - - - - true