summaryrefslogtreecommitdiff
path: root/src/DisplayApp/LittleVgl.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-07-11 21:09:34 +0200
committerJF <jf@codingfield.com>2020-07-11 21:09:34 +0200
commit64c14274fc2f025fc48d3df47a1640f08eb968cd (patch)
tree262cf8b4e84c556748f42bbf778b48a68210921d /src/DisplayApp/LittleVgl.cpp
parent0bcaf9c22d6183ba8072e10abb9da7aea578b8db (diff)
parent6309719a62436fd746a7a8b228205e93b419ca26 (diff)
Merge branch 'develop'
# Conflicts: # CMakeLists.txt
Diffstat (limited to 'src/DisplayApp/LittleVgl.cpp')
-rw-r--r--src/DisplayApp/LittleVgl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DisplayApp/LittleVgl.cpp b/src/DisplayApp/LittleVgl.cpp
index 7b6cda94..3483f8e8 100644
--- a/src/DisplayApp/LittleVgl.cpp
+++ b/src/DisplayApp/LittleVgl.cpp
@@ -17,6 +17,8 @@ LV_FONT_DECLARE(jetbrains_mono_extrabold_compressed)
LV_FONT_DECLARE(jetbrains_mono_bold_20)
}
+lv_style_t* LabelBigStyle = nullptr;
+
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);
@@ -361,6 +363,10 @@ void LittleVgl::InitThemeLabel() {
lv_style_copy(&prim, &bg);
prim.text.color = lv_color_hsv_to_rgb(hue, 5, 95);
+ lv_style_copy(&labelBigStyle, &prim);
+ labelBigStyle.text.font = &jetbrains_mono_extrabold_compressed;
+ LabelBigStyle = &(this->labelBigStyle);
+
lv_style_copy(&sec, &bg);
sec.text.color = lv_color_hsv_to_rgb(hue, 15, 65);