Qt: Fix debugger font on MacOS

And only set it on the tabs, not the whole window.
This commit is contained in:
Stenzek 2023-09-23 21:13:47 +10:00 committed by Connor McLaughlin
parent 1c828bd680
commit 2272134442
1 changed files with 5 additions and 3 deletions

View File

@ -30,10 +30,12 @@ DebuggerWindow::DebuggerWindow(QWidget* parent)
// Easiest way to handle cross platform monospace fonts // Easiest way to handle cross platform monospace fonts
// There are issues related to TabWidget -> Children font inheritance otherwise // There are issues related to TabWidget -> Children font inheritance otherwise
#ifdef WIN32 #if defined(WIN32)
this->setStyleSheet("font: 8pt 'Lucida Console'"); m_ui.cpuTabs->setStyleSheet(QStringLiteral("font: 8pt 'Lucida Console'"));
#elif defined(__APPLE__)
m_ui.cpuTabs->setStyleSheet(QStringLiteral("font: 10pt 'Monaco'"));
#else #else
this->setStyleSheet("font: 8pt 'Monospace'"); m_ui.cpuTabs->setStyleSheet(QStringLiteral("font: 8pt 'Monospace'"));
#endif #endif
m_actionRunPause = new QAction(tr("Run"), this); m_actionRunPause = new QAction(tr("Run"), this);