From 98d969ab15b8be1463386e330e48e64772a1584f Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Sun, 27 Oct 2024 21:23:15 +0100 Subject: [PATCH] only apply windows11 theme workaround to Qt6. Qt5 doesn't have it anywya. --- src/frontend/qt_sdl/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/qt_sdl/Window.cpp b/src/frontend/qt_sdl/Window.cpp index 2354fa20..5c599e70 100644 --- a/src/frontend/qt_sdl/Window.cpp +++ b/src/frontend/qt_sdl/Window.cpp @@ -265,7 +265,7 @@ MainWindow::MainWindow(int id, EmuInstance* inst, QWidget* parent) : setAcceptDrops(true); setFocusPolicy(Qt::ClickFocus); -#ifdef WIN32 +#ifdef QT_VERSION_MAJOR == 6 && WIN32 // The "windows11" theme has pretty massive padding around menubar items, this makes Config and Help not fit in a window at 1x screen sizing // So let's reduce the padding a bit. if (QApplication::style()->name() == "windows11")