summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/WatchFaceTerminal.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-03-24 03:23:39 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-03-24 03:23:39 (GMT)
commitfc3b11349015a34d292e1f2c2e03353ee6a799a0 (patch)
tree86b177d361aa6f971b4674c04503af9d051a6e79 /src/displayapp/screens/WatchFaceTerminal.cpp
parent7be329691dc7f6a69d610c56fa2027c9e635e16a (diff)
parenta62b893469765923a113acdf85627ce39322880f (diff)
Merge ../../InfiniTime into HEAD
Diffstat (limited to 'src/displayapp/screens/WatchFaceTerminal.cpp')
-rw-r--r--src/displayapp/screens/WatchFaceTerminal.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/displayapp/screens/WatchFaceTerminal.cpp b/src/displayapp/screens/WatchFaceTerminal.cpp
index 08a9db5..3a47fc5 100644
--- a/src/displayapp/screens/WatchFaceTerminal.cpp
+++ b/src/displayapp/screens/WatchFaceTerminal.cpp
@@ -41,7 +41,7 @@ WatchFaceTerminal::WatchFaceTerminal(DisplayApp* app,
lv_obj_align(connectState, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 40);
notificationIcon = lv_label_create(lv_scr_act(), nullptr);
- lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_TOP_LEFT, 10, 0);
+ lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_LEFT_MID, 0, -100);
label_date = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_recolor(label_date, true);
@@ -97,12 +97,12 @@ void WatchFaceTerminal::Refresh() {
bleRadioEnabled = bleController.IsRadioEnabled();
if (bleState.IsUpdated() || bleRadioEnabled.IsUpdated()) {
if(!bleRadioEnabled.Get()) {
- lv_label_set_text_static(connectState, "[STAT]#387b54 Disabled#");
+ lv_label_set_text_static(connectState, "[STAT]#0082fc Disabled#");
} else {
if (bleState.Get()) {
- lv_label_set_text_static(connectState, "[STAT]#387b54 Connected#");
+ lv_label_set_text_static(connectState, "[STAT]#0082fc Connected#");
} else {
- lv_label_set_text_static(connectState, "[STAT]#387b54 Disconnected#");
+ lv_label_set_text_static(connectState, "[STAT]#0082fc Disconnected#");
}
}
}
@@ -110,9 +110,9 @@ void WatchFaceTerminal::Refresh() {
notificationState = notificatioManager.AreNewNotificationsAvailable();
if (notificationState.IsUpdated()) {
if (notificationState.Get()) {
- lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(true));
+ lv_label_set_text_static(notificationIcon, "You have mail.");
} else {
- lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(false));
+ lv_label_set_text_static(notificationIcon, "");
}
}