summaryrefslogtreecommitdiff
path: root/src/displayapp
diff options
context:
space:
mode:
authorialokim <ialokim@mailbox.org>2022-08-07 20:40:45 +0200
committerGitHub <noreply@github.com>2022-08-07 20:40:45 +0200
commita7c86786c3a56877a0343c58bc706acf131af30b (patch)
tree324b87a62f6a66fd8ce1291837fbc8bcdc29fa54 /src/displayapp
parent97140652d6b17908d385018746aec886941127b8 (diff)
Apply suggestions from code review
Co-authored-by: NeroBurner <pyro4hell@gmail.com>
Diffstat (limited to 'src/displayapp')
-rw-r--r--src/displayapp/screens/WatchFacePineTimeStyle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/displayapp/screens/WatchFacePineTimeStyle.cpp b/src/displayapp/screens/WatchFacePineTimeStyle.cpp
index 53f8a1c2..6aaeeb96 100644
--- a/src/displayapp/screens/WatchFacePineTimeStyle.cpp
+++ b/src/displayapp/screens/WatchFacePineTimeStyle.cpp
@@ -192,7 +192,7 @@ WatchFacePineTimeStyle::WatchFacePineTimeStyle(DisplayApp* app,
// Display seconds
timeDD3 = lv_label_create(lv_scr_act(), nullptr);
- lv_obj_set_style_local_text_color(timeDD3, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x000000));
+ lv_obj_set_style_local_text_color(timeDD3, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
lv_label_set_text_static(timeDD3, ":00");
lv_obj_align(timeDD3, sidebar, LV_ALIGN_IN_BOTTOM_MID, 0, 0);
@@ -423,7 +423,6 @@ void WatchFacePineTimeStyle::Refresh() {
if (displayedSecond != second) {
displayedSecond = second;
-
lv_label_set_text_fmt(timeDD3, ":%02d", second);
}