diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-31 11:56:31 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-31 11:56:31 (GMT) |
| commit | 043517f85124810310e5a854fb02b52fb9feccb3 (patch) | |
| tree | 8d1823d889eff677bc006e0b5b303dca17106781 | |
| parent | 999ae1954421457d1b9cccd3b368b4c57a412814 (diff) | |
Fix am display; remove redundant code
| -rw-r--r-- | src/displayapp/screens/WatchFaceDigital.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/displayapp/screens/WatchFaceDigital.cpp b/src/displayapp/screens/WatchFaceDigital.cpp index f2c3c27..6d80742 100644 --- a/src/displayapp/screens/WatchFaceDigital.cpp +++ b/src/displayapp/screens/WatchFaceDigital.cpp @@ -53,18 +53,15 @@ WatchFaceDigital::WatchFaceDigital(DisplayApp* app, lv_obj_align(label_date, nullptr, LV_ALIGN_CENTER, 0, 60); lv_obj_set_auto_realign(label_date, true); lv_obj_set_style_local_text_color(label_date, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x999999)); - lv_obj_set_style_local_text_font(label_date, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &neofont15); label_time = lv_label_create(lv_scr_act(), nullptr); - lv_obj_set_style_local_text_font(label_time, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &neofont15); lv_label_set_text_fmt(label_time, hhmm_label_text); lv_obj_align(label_time, nullptr, LV_ALIGN_CENTER, 0, 0); lv_label_set_long_mode(label_time, LV_LABEL_LONG_CROP); lv_label_set_align(label_time, LV_LABEL_ALIGN_RIGHT); label_time_pm = lv_label_create(lv_scr_act(), nullptr); - lv_label_set_text_static(label_time_pm, "P"); - lv_obj_set_style_local_text_font(label_time_pm, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &neofont15); + lv_label_set_text_static(label_time_pm, "P "); lv_obj_align(label_time_pm, label_time, LV_ALIGN_OUT_LEFT_TOP, 0, 0); lv_obj_set_hidden(label_time_pm, 1); |
