aboutsummaryrefslogtreecommitdiffstats
path: root/src/DisplayApp/LittleVgl.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-01 19:09:59 +0100
committerJF <jf@codingfield.com>2020-03-01 19:09:59 +0100
commit5bc0640b735573b465cfef16fb729ad5f5149eb4 (patch)
treec5e5ad9b23b34dff9d8d3d3eee68812d9f1cbabe /src/DisplayApp/LittleVgl.cpp
parent21375eab81ea384fe94177617e23892fd8210c1d (diff)
Fix typo in the name of the font "jetbrains_mono_extrabold_compressed" + use it as the default font.
Diffstat (limited to 'src/DisplayApp/LittleVgl.cpp')
-rw-r--r--src/DisplayApp/LittleVgl.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/DisplayApp/LittleVgl.cpp b/src/DisplayApp/LittleVgl.cpp
index c4fa1793..59334931 100644
--- a/src/DisplayApp/LittleVgl.cpp
+++ b/src/DisplayApp/LittleVgl.cpp
@@ -12,6 +12,11 @@
using namespace Pinetime::Components;
+extern "C" {
+LV_FONT_DECLARE(jetbrains_mono_extrabold_compressed)
+LV_FONT_DECLARE(jetbrains_mono_bold_20)
+}
+
static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p) {
auto* lvgl = static_cast<LittleVgl*>(disp_drv->user_data);
lvgl->FlushDisplay(area, color_p);
@@ -135,8 +140,7 @@ void LittleVgl::InitTheme() {
}
void LittleVgl::InitBaseTheme() {
- if(font == nullptr) font = LV_FONT_DEFAULT;
-
+ if(font == nullptr) font = &jetbrains_mono_bold_20;
lv_style_copy(&def, &lv_style_plain); /*Initialize the default style*/
def.text.font = font;