- enhancement: Auto choose a better font for theme choosing dialog in the first run.
This commit is contained in:
parent
3018339ae3
commit
f91c2bb188
1
NEWS.md
1
NEWS.md
|
@ -50,6 +50,7 @@ Red Panda C++ Version 2.27
|
||||||
- enhancement: Font list in the options / editor / font panel( by CyanoHao ).
|
- enhancement: Font list in the options / editor / font panel( by CyanoHao ).
|
||||||
- enhancement: Text are vertically center aligned in lines( 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.
|
- 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
|
Red Panda C++ Version 2.26
|
||||||
- enhancement: Code suggestion for embedded std::vectors.
|
- enhancement: Code suggestion for embedded std::vectors.
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#include "editorlist.h"
|
#include "editorlist.h"
|
||||||
#include "widgets/choosethemedialog.h"
|
#include "widgets/choosethemedialog.h"
|
||||||
#include "thememanager.h"
|
#include "thememanager.h"
|
||||||
|
#include "utils/font.h"
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#include <QTemporaryFile>
|
#include <QTemporaryFile>
|
||||||
|
@ -368,6 +369,7 @@ int main(int argc, char *argv[])
|
||||||
if (firstRun) {
|
if (firstRun) {
|
||||||
//set theme
|
//set theme
|
||||||
ChooseThemeDialog themeDialog;
|
ChooseThemeDialog themeDialog;
|
||||||
|
themeDialog.setFont(QFont(defaultUiFont(),11));
|
||||||
themeDialog.exec();
|
themeDialog.exec();
|
||||||
switch (themeDialog.theme()) {
|
switch (themeDialog.theme()) {
|
||||||
case ChooseThemeDialog::Theme::AutoFollowSystem:
|
case ChooseThemeDialog::Theme::AutoFollowSystem:
|
||||||
|
|
Loading…
Reference in New Issue