diff --git a/src/gui/newwizard/setupwizardwindow.cpp b/src/gui/newwizard/setupwizardwindow.cpp index daa80ff35b8..a07f2519aa3 100644 --- a/src/gui/newwizard/setupwizardwindow.cpp +++ b/src/gui/newwizard/setupwizardwindow.cpp @@ -7,6 +7,7 @@ #include "theme.h" #include +#include using namespace std::chrono_literals; @@ -55,6 +56,17 @@ SetupWizardWindow::SetupWizardWindow(QWidget *parent) resize(ocApp()->gui()->settingsDialog()->sizeHintForChild()); + // different styles (e.g., 'Windows', 'Fusion') may require different approaches in the stylesheet + // therefore we want to force a standard style on all platforms + // this further makes sure the wizard (well, its contents) looks exactly the same on all platforms + // Fusion should be available everywhere + auto fusionStyle = QStyleFactory::create(QStringLiteral("Fusion")); + if (OC_ENSURE(fusionStyle != nullptr)) { + _ui->contentWidget->setStyle(fusionStyle); + } else { + qDebug() << "Could not set up default style, wizard contents will be shown using default style"; + } + loadStylesheet(); _ui->transitionProgressIndicator->setFixedSize(32, 32);