Skip to content

Commit 5d97443

Browse files
committed
Replace notif entry with "You have mail." text
1 parent 8dae4c8 commit 5d97443

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/displayapp/screens/WatchFaceTerminal.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ WatchFaceTerminal::WatchFaceTerminal(DisplayApp* app,
5050
lv_obj_align(connectState, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 40);
5151

5252
notificationIcon = lv_label_create(lv_scr_act(), nullptr);
53-
lv_label_set_recolor(notificationIcon, true);
54-
lv_label_set_text(notificationIcon, "[NOTI]#387b54 ---");
55-
lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_LEFT_MID, 0, 60);
53+
lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_LEFT_MID, 0, -100);
5654

5755
label_date = lv_label_create(lv_scr_act(), nullptr);
5856
lv_label_set_recolor(label_date, true);
@@ -63,7 +61,7 @@ WatchFaceTerminal::WatchFaceTerminal(DisplayApp* app,
6361
lv_label_set_text(label_prompt_1, "user@watch:~ $ now");
6462

6563
label_prompt_2 = lv_label_create(lv_scr_act(), nullptr);
66-
lv_obj_align(label_prompt_2, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 80);
64+
lv_obj_align(label_prompt_2, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 60);
6765
lv_label_set_text(label_prompt_2, "user@watch:~ $");
6866

6967
label_time = lv_label_create(lv_scr_act(), nullptr);
@@ -131,9 +129,9 @@ void WatchFaceTerminal::Refresh() {
131129
notificationState = notificatioManager.AreNewNotificationsAvailable();
132130
if (notificationState.IsUpdated()) {
133131
if (notificationState.Get()) {
134-
lv_label_set_text_static(notificationIcon, "[NOTI]#387b54 Unread");
132+
lv_label_set_text_static(notificationIcon, "You have mail.");
135133
} else {
136-
lv_label_set_text_static(notificationIcon, "[NOTI]#387b54 ---");
134+
lv_label_set_text_static(notificationIcon, "");
137135
}
138136
}
139137

0 commit comments

Comments
 (0)