[apps/code] Choose console text size from GlobalPreferences

This commit is contained in:
Émilie Feral
2019-10-04 11:40:42 +02:00
committed by Léa Saviot
parent b3d45833d0
commit c2dabf6510
4 changed files with 11 additions and 10 deletions

View File

@@ -5,7 +5,8 @@
#include <apps/i18n.h>
#include <assert.h>
#include <escher/metric.h>
#include "../apps_container.h"
#include <apps/global_preferences.h>
#include <apps/apps_container.h>
extern "C" {
#include <stdlib.h>
@@ -27,7 +28,7 @@ ConsoleController::ConsoleController(Responder * parentResponder, App * pythonDe
TextFieldDelegate(),
MicroPython::ExecutionEnvironment(),
m_pythonDelegate(pythonDelegate),
m_rowHeight(k_font->glyphSize().height()),
m_rowHeight(GlobalPreferences::sharedGlobalPreferences()->font()->glyphSize().height()),
m_importScriptsWhenViewAppears(false),
m_selectableTableView(this, this, this, this),
m_editCell(this, pythonDelegate, this),