mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 01:49:42 -06:00
Work around Qt windows11 theme menu bar padding
This commit is contained in:
@ -264,6 +264,13 @@ MainWindow::MainWindow(int id, EmuInstance* inst, QWidget* parent) :
|
|||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
setFocusPolicy(Qt::ClickFocus);
|
setFocusPolicy(Qt::ClickFocus);
|
||||||
|
|
||||||
|
#ifdef 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")
|
||||||
|
setStyleSheet("QMenuBar::item { padding: 4px 8px; }");
|
||||||
|
#endif
|
||||||
|
|
||||||
QMenuBar* menubar = new QMenuBar();
|
QMenuBar* menubar = new QMenuBar();
|
||||||
{
|
{
|
||||||
QMenu* menu = menubar->addMenu("File");
|
QMenu* menu = menubar->addMenu("File");
|
||||||
|
Reference in New Issue
Block a user