aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Clock.cpp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-02-23 21:18:59 +0100
committerJean-François Milants <jf@codingfield.com>2021-02-23 21:18:59 +0100
commitf864330d355172046fab0923fd9015ec52884f00 (patch)
tree0fd8743c9ea357d6f3ac61949292187113d3867f /src/displayapp/screens/Clock.cpp
parent324c7dab326ea23a6c8502bbb8c6e9b9d87a839f (diff)
parent3fe3f06299b37b99cad117e0ec726735acbdc721 (diff)
Merge branch 'LVGL7' of https://github.com/joaquimorg/Pinetime into joaquimorg-LVGL7
# Conflicts: # src/CMakeLists.txt # src/displayapp/DisplayApp.cpp # src/displayapp/screens/Modal.cpp # src/displayapp/screens/Modal.h # src/displayapp/screens/Notifications.cpp # src/displayapp/screens/Tile.h
Diffstat (limited to 'src/displayapp/screens/Clock.cpp')
-rw-r--r--src/displayapp/screens/Clock.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/displayapp/screens/Clock.cpp b/src/displayapp/screens/Clock.cpp
index 2988922e..4b280adb 100644
--- a/src/displayapp/screens/Clock.cpp
+++ b/src/displayapp/screens/Clock.cpp
@@ -14,9 +14,6 @@
#include "../DisplayApp.h"
using namespace Pinetime::Applications::Screens;
-extern lv_font_t jetbrains_mono_extrabold_compressed;
-extern lv_font_t jetbrains_mono_bold_20;
-extern lv_style_t* LabelBigStyle;
static void event_handler(lv_obj_t * obj, lv_event_t event) {
Clock* screen = static_cast<Clock *>(obj->user_data);
@@ -59,7 +56,9 @@ Clock::Clock(DisplayApp* app,
lv_obj_align(label_date, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 60);
label_time = lv_label_create(lv_scr_act(), nullptr);
- lv_label_set_style(label_time, LV_LABEL_STYLE_MAIN, LabelBigStyle);
+
+ lv_obj_set_style_local_text_font(label_time, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &jetbrains_mono_extrabold_compressed);
+
lv_obj_align(label_time, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 0);
backgroundLabel = lv_label_create(lv_scr_act(), nullptr);