From f91c2bb18812676b98bd8f808e506513d582a541 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 13 Mar 2024 20:57:56 +0800 Subject: [PATCH] - enhancement: Auto choose a better font for theme choosing dialog in the first run. --- NEWS.md | 1 + RedPandaIDE/main.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS.md b/NEWS.md index 6bebb7b4..f189944a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -50,6 +50,7 @@ Red Panda C++ Version 2.27 - enhancement: Font list in the options / editor / font panel( by CyanoHao ). - enhancement: Text are vertically center aligned in lines( by CyanoHao ). - fix: In the debugger console, Auto-wrapped lines can't be correctly selected. + - enhancement: Auto choose a better font for theme choosing dialog in the first run. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/main.cpp b/RedPandaIDE/main.cpp index 64621501..cd3c1def 100644 --- a/RedPandaIDE/main.cpp +++ b/RedPandaIDE/main.cpp @@ -39,6 +39,7 @@ #include "editorlist.h" #include "widgets/choosethemedialog.h" #include "thememanager.h" +#include "utils/font.h" #ifdef Q_OS_WIN #include @@ -368,6 +369,7 @@ int main(int argc, char *argv[]) if (firstRun) { //set theme ChooseThemeDialog themeDialog; + themeDialog.setFont(QFont(defaultUiFont(),11)); themeDialog.exec(); switch (themeDialog.theme()) { case ChooseThemeDialog::Theme::AutoFollowSystem: