diff options
Diffstat (limited to 'src/displayapp/screens/WatchFaceDigital.cpp')
| -rw-r--r-- | src/displayapp/screens/WatchFaceDigital.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/displayapp/screens/WatchFaceDigital.cpp b/src/displayapp/screens/WatchFaceDigital.cpp index 3209330..46a0d81 100644 --- a/src/displayapp/screens/WatchFaceDigital.cpp +++ b/src/displayapp/screens/WatchFaceDigital.cpp @@ -82,6 +82,7 @@ WatchFaceDigital::WatchFaceDigital(DisplayApp* app, lv_obj_set_style_local_text_color(memfragLabel, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x272727)); lv_label_set_text_static(memfragLabel, memfrag_label_text); lv_obj_align(memfragLabel, nullptr, LV_ALIGN_IN_RIGHT_MID, 0, -50); + // lv_obj_set_hidden(memfragLabel, true); 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, &neofont3); @@ -147,6 +148,11 @@ bool WatchFaceDigital::OnTouchEvent(Pinetime::Applications::TouchEvents event) { return false; } +// bool WatchFaceDigital::OnButtonPushed() { +// RefreshStats(); +// return true; +// } + namespace { template <typename Malloc, typename Free> struct AllocStats { inline AllocStats(const Malloc& m, const Free& f) : ourMalloc(m), ourFree(f) { }; @@ -251,6 +257,7 @@ void WatchFaceDigital::RefreshStats() { s += 4; } lv_label_set_text_static(memfragLabel, memfrag_label_text); + // lv_obj_set_hidden(memfragLabel, false); } void WatchFaceDigital::Refresh() { @@ -351,6 +358,7 @@ void WatchFaceDigital::Refresh() { hhmm_label_text[4] = '0' + (minute % 10); lv_label_set_text_static(label_time, hhmm_label_text); lv_obj_set_hidden(label_time_pm, hide_pm); + // RefreshStats(); } if ((year != currentYear) || (month != currentMonth) || (dayOfWeek != currentDayOfWeek) || (day != currentDay)) { |
