From 2272134442fe353e2b16facd74773051ff6671e5 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 23 Sep 2023 21:13:47 +1000 Subject: [PATCH] Qt: Fix debugger font on MacOS And only set it on the tabs, not the whole window. --- pcsx2-qt/Debugger/DebuggerWindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pcsx2-qt/Debugger/DebuggerWindow.cpp b/pcsx2-qt/Debugger/DebuggerWindow.cpp index 734f52e7e8..c499f87cff 100644 --- a/pcsx2-qt/Debugger/DebuggerWindow.cpp +++ b/pcsx2-qt/Debugger/DebuggerWindow.cpp @@ -30,10 +30,12 @@ DebuggerWindow::DebuggerWindow(QWidget* parent) // Easiest way to handle cross platform monospace fonts // There are issues related to TabWidget -> Children font inheritance otherwise -#ifdef WIN32 - this->setStyleSheet("font: 8pt 'Lucida Console'"); +#if defined(WIN32) + m_ui.cpuTabs->setStyleSheet(QStringLiteral("font: 8pt 'Lucida Console'")); +#elif defined(__APPLE__) + m_ui.cpuTabs->setStyleSheet(QStringLiteral("font: 10pt 'Monaco'")); #else - this->setStyleSheet("font: 8pt 'Monospace'"); + m_ui.cpuTabs->setStyleSheet(QStringLiteral("font: 8pt 'Monospace'")); #endif m_actionRunPause = new QAction(tr("Run"), this);