diff --git a/src/app/main.cpp b/src/app/main.cpp index 4ec11d5e896..43712c6836a 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -680,11 +680,18 @@ int main(int argc, char **argv) setPixmapCacheLimit(); loadFonts(); - // On 100% or 200% scaling we can use the default 'Vista' style on Windows - qreal tmp; - const bool fractionalDpi = !qFuzzyIsNull(std::modf(qApp->devicePixelRatio(), &tmp)); - if (Utils::HostOsInfo::isWindowsHost() && fractionalDpi && !hasStyleOption) - QApplication::setStyle(QLatin1String("fusion")); + if (Utils::HostOsInfo::isWindowsHost() && !hasStyleOption) { + // The Windows 11 default style (Qt 6.7) has major issues, therefore + // set the previous default style: "windowsvista" + // FIXME: check newer Qt Versions + QApplication::setStyle(QLatin1String("windowsvista")); + + // On scaling different than 100% or 200% use the "fusion" style + qreal tmp; + const bool fractionalDpi = !qFuzzyIsNull(std::modf(qApp->devicePixelRatio(), &tmp)); + if (fractionalDpi) + QApplication::setStyle(QLatin1String("fusion")); + } const int threadCount = QThreadPool::globalInstance()->maxThreadCount(); QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));