Skip to content

Commit

Permalink
- enhancement: Auto choose a better font for theme choosing dialog in…
Browse files Browse the repository at this point in the history
… the first run.
  • Loading branch information
royqh1979 committed Mar 13, 2024
1 parent 3018339 commit f91c2bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions RedPandaIDE/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "editorlist.h"
#include "widgets/choosethemedialog.h"
#include "thememanager.h"
#include "utils/font.h"

#ifdef Q_OS_WIN
#include <QTemporaryFile>
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f91c2bb

Please sign in to comment.