summaryrefslogtreecommitdiff
path: root/src/DisplayApp/Screens/Clock.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-02 19:12:46 (GMT)
committerJF <jf@codingfield.com>2020-03-02 19:12:46 (GMT)
commit824b8a7ebd0e8b4f876dd12f564e89238a1bb1b4 (patch)
tree71d8177a08ba677a5e7aafb790b174f2b4b52b5f /src/DisplayApp/Screens/Clock.cpp
parentdccef161805171a9271ab3ebe50d0cc261c53a65 (diff)
Move version display from Clock screen to the modal window (accessible from tile menu)
Diffstat (limited to 'src/DisplayApp/Screens/Clock.cpp')
-rw-r--r--src/DisplayApp/Screens/Clock.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/DisplayApp/Screens/Clock.cpp b/src/DisplayApp/Screens/Clock.cpp
index 1dff88c..7051c43 100644
--- a/src/DisplayApp/Screens/Clock.cpp
+++ b/src/DisplayApp/Screens/Clock.cpp
@@ -48,11 +48,7 @@ Clock::Clock(DisplayApp* app,
label_date = lv_label_create(lv_scr_act(), NULL);
lv_label_set_style(label_date, LV_LABEL_STYLE_MAIN, labelStyle);
- lv_obj_align(label_date, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 80);
-
- label_version = lv_label_create(lv_scr_act(), NULL);
- lv_label_set_style(label_version, LV_LABEL_STYLE_MAIN, labelStyle);
- lv_obj_align(label_version, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 100);
+ lv_obj_align(label_date, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 60);
backgroundLabel = lv_label_create(lv_scr_act(), NULL);
backgroundLabel->user_data = this;
@@ -140,13 +136,6 @@ bool Clock::Refresh() {
}
}
- if(version.IsUpdated()) {
- auto dummy = version.Get();
- char versionStr[20];
- sprintf(versionStr, "VERSION: %d.%d.%d", Version::Major(), Version::Minor(), Version::Patch());
- lv_label_set_text(label_version, versionStr);
- }
-
return running;
}