From 701491156acaa1c96dd88e2b3246aad5fbab0f2e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 22 Mar 2020 22:40:29 +1000 Subject: [PATCH] Qt: Use menu font instead of system font as default font --- src/duckstation-qt/main.cpp | 6 ++++++ src/duckstation-qt/mainwindow.cpp | 2 +- src/duckstation-qt/settingsdialog.ui | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/duckstation-qt/main.cpp b/src/duckstation-qt/main.cpp index c18137642..74e46dc4a 100644 --- a/src/duckstation-qt/main.cpp +++ b/src/duckstation-qt/main.cpp @@ -27,6 +27,12 @@ int main(int argc, char* argv[]) QApplication app(argc, argv); +#ifdef _WIN32 + // Use Segoe UI on Windows rather than MS Shell Dlg 2, courtesy of Dolphin. + // Can be removed once switched to Qt 6. + QApplication::setFont(QApplication::font("QMenu")); +#endif + std::unique_ptr host_interface = std::make_unique(); std::unique_ptr window = std::make_unique(host_interface.get()); diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index ad00c8f52..62709b024 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -31,7 +31,7 @@ MainWindow::MainWindow(QtHostInterface* host_interface) : QMainWindow(nullptr), setupAdditionalUi(); connectSignals(); - resize(750, 690); + resize(800, 700); } MainWindow::~MainWindow() diff --git a/src/duckstation-qt/settingsdialog.ui b/src/duckstation-qt/settingsdialog.ui index 911e9b882..42a4a05ce 100644 --- a/src/duckstation-qt/settingsdialog.ui +++ b/src/duckstation-qt/settingsdialog.ui @@ -122,7 +122,7 @@ 16777215 - 80 + 110