Skip to content

Commit dbfcb45

Browse files
authored
Merge pull request #1005 from aveeryy/notifications-as-text
Terminal watchface: replace notifications icon with a text entry
2 parents 7e0b053 + 8844ea6 commit dbfcb45

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/displayapp/screens/WatchFaceTerminal.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ WatchFaceTerminal::WatchFaceTerminal(DisplayApp* app,
4141
lv_obj_align(connectState, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, 40);
4242

4343
notificationIcon = lv_label_create(lv_scr_act(), nullptr);
44-
lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_TOP_LEFT, 10, 0);
44+
lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_LEFT_MID, 0, -100);
4545

4646
label_date = lv_label_create(lv_scr_act(), nullptr);
4747
lv_label_set_recolor(label_date, true);
@@ -97,22 +97,22 @@ void WatchFaceTerminal::Refresh() {
9797
bleRadioEnabled = bleController.IsRadioEnabled();
9898
if (bleState.IsUpdated() || bleRadioEnabled.IsUpdated()) {
9999
if(!bleRadioEnabled.Get()) {
100-
lv_label_set_text_static(connectState, "[STAT]#387b54 Disabled#");
100+
lv_label_set_text_static(connectState, "[STAT]#0082fc Disabled#");
101101
} else {
102102
if (bleState.Get()) {
103-
lv_label_set_text_static(connectState, "[STAT]#387b54 Connected#");
103+
lv_label_set_text_static(connectState, "[STAT]#0082fc Connected#");
104104
} else {
105-
lv_label_set_text_static(connectState, "[STAT]#387b54 Disconnected#");
105+
lv_label_set_text_static(connectState, "[STAT]#0082fc Disconnected#");
106106
}
107107
}
108108
}
109109

110110
notificationState = notificatioManager.AreNewNotificationsAvailable();
111111
if (notificationState.IsUpdated()) {
112112
if (notificationState.Get()) {
113-
lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(true));
113+
lv_label_set_text_static(notificationIcon, "You have mail.");
114114
} else {
115-
lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(false));
115+
lv_label_set_text_static(notificationIcon, "");
116116
}
117117
}
118118

0 commit comments

Comments
 (0)