summaryrefslogtreecommitdiff
path: root/src/displayapp
diff options
context:
space:
mode:
authoravery <aveeryy@protonmail.com>2022-02-22 18:42:54 +0100
committeravery <aveeryy@protonmail.com>2022-02-22 18:42:54 +0100
commit8dae4c82990df8236faa57ef4b6ae00c92298a1d (patch)
treeaf7dde5abf16d56f70ff8d6140ce8837bfc00e9d /src/displayapp
parent2803dd667f90bf8b19e45820235d3ab90490f96b (diff)
terminal: Replace notification icon with a text entry
Diffstat (limited to 'src/displayapp')
-rw-r--r--src/displayapp/screens/WatchFaceTerminal.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/displayapp/screens/WatchFaceTerminal.cpp b/src/displayapp/screens/WatchFaceTerminal.cpp
index c593e6bf..ebd463f9 100644
--- a/src/displayapp/screens/WatchFaceTerminal.cpp
+++ b/src/displayapp/screens/WatchFaceTerminal.cpp
@@ -50,8 +50,9 @@ 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_label_set_text(notificationIcon, NotificationIcon::GetIcon(false));
- lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_TOP_LEFT, 10, 0);
+ lv_label_set_recolor(notificationIcon, true);
+ lv_label_set_text(notificationIcon, "[NOTI]#387b54 ---");
+ lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_LEFT_MID, 0, 60);
label_date = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_recolor(label_date, true);
@@ -62,7 +63,7 @@ WatchFaceTerminal::WatchFaceTerminal(DisplayApp* app,
lv_label_set_text(label_prompt_1, "user@watch:~ $ now");
label_prompt_2 = lv_label_create(lv_scr_act(), nullptr);
- lv_obj_align(label_prompt_2, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 60);
+ lv_obj_align(label_prompt_2, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 80);
lv_label_set_text(label_prompt_2, "user@watch:~ $");
label_time = lv_label_create(lv_scr_act(), nullptr);
@@ -130,9 +131,9 @@ void WatchFaceTerminal::Refresh() {
notificationState = notificatioManager.AreNewNotificationsAvailable();
if (notificationState.IsUpdated()) {
if (notificationState.Get()) {
- lv_label_set_text(notificationIcon, NotificationIcon::GetIcon(true));
+ lv_label_set_text_static(notificationIcon, "[NOTI]#387b54 Unread");
} else {
- lv_label_set_text(notificationIcon, NotificationIcon::GetIcon(false));
+ lv_label_set_text_static(notificationIcon, "[NOTI]#387b54 ---");
}
}