diff --git a/NEWS.md b/NEWS.md index f2c95de8..d128c80d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -9,6 +9,7 @@ Version 0.8.1 For Dev-C++ 7 Beta - fix: if the proceeding line is a comment, current line should not recalculate indent - fix: if the proceeding line ends with ':' in comments, current line should not indent - enhancement: right click the problem set name label to rename it + - change: memory view and locals view use debug console's font settings Version 0.8 For Dev-C++ 7 Beta - fix: find in the current file is not correcly saved in the search history diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index e6714139..e654ea17 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -1055,9 +1055,11 @@ void MainWindow::updateCompilerSet() void MainWindow::updateDebuggerSettings() { - ui->debugConsole->setFont(QFont( - pSettings->debugger().fontName(), - pSettings->debugger().fontSize())); + QFont font(pSettings->debugger().fontName(), + pSettings->debugger().fontSize()); + ui->debugConsole->setFont(font); + ui->txtMemoryView->setFont(font); + ui->txtLocals->setFont(font); } void MainWindow::checkSyntaxInBack(Editor *e) diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index 645fa048..647d94b1 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -8,6 +8,7 @@ #include #include #include +#include const char ValueToChar[28] = {'0', '1', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', @@ -1142,7 +1143,7 @@ void Settings::Editor::doLoad() mGutterLineNumbersStartZero = boolValue("gutter_line_numbers_start_zero",false); mGutterUseCustomFont = boolValue("gutter_use_custom_font",false); mGutterFontName = stringValue("gutter_font_name","consolas"); - mGutterFontSize = intValue("gutter_font_size",QGuiApplication::font().pointSize()); + mGutterFontSize = intValue("gutter_font_size",14); mGutterFontOnlyMonospaced = boolValue("gutter_font_only_monospaced",true); //copy @@ -2993,7 +2994,7 @@ void Settings::Debugger::doLoad() mShowAnnotations = boolValue("show_annotations",false); mFontName = stringValue("font_name","Consolas"); mOnlyShowMono = boolValue("only_show_mono",true); - mFontSize = intValue("font_size",10); + mFontSize = intValue("font_size",12); mUseIntelStyle = boolValue("use_intel_style",true); mBlendMode = boolValue("blend_mode",true); mSkipSystemLibraries = boolValue("skip_system_lib",true);