Skip to content

Commit 26e6f29

Browse files
committed
Change colors in UI.
1 parent 666d045 commit 26e6f29

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/displayapp/screens/FindMyPhone.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ FindMyPhone::FindMyPhone(Pinetime::Controllers::ImmediateAlertClient& immediateA
4141
lblTitle = lv_label_create(lv_scr_act(), nullptr);
4242

4343
lv_label_set_text_static(lblTitle, defaultLabelText);
44-
lv_obj_set_style_local_text_color(lblTitle, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::lightGray);
44+
lv_obj_set_style_local_text_color(lblTitle, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE);
4545
lv_obj_align(lblTitle, nullptr, LV_ALIGN_CENTER, 0, -40);
4646

4747
btnNone = lv_btn_create(container, nullptr);
@@ -51,7 +51,7 @@ FindMyPhone::FindMyPhone(Pinetime::Controllers::ImmediateAlertClient& immediateA
5151
lv_obj_align(btnNone, nullptr, LV_ALIGN_IN_BOTTOM_LEFT, 0, 0);
5252
lblNone = lv_label_create(btnNone, nullptr);
5353
lv_label_set_text_static(lblNone, noneLabelText);
54-
lv_obj_set_style_local_bg_color(btnNone, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::lightGray);
54+
lv_obj_set_style_local_bg_color(btnNone, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::bgAlt);
5555

5656
btnHigh = lv_btn_create(container, nullptr);
5757
btnHigh->user_data = this;
@@ -81,7 +81,7 @@ void FindMyPhone::OnImmediateAlertEvent(lv_obj_t* obj, lv_event_t event) {
8181
void FindMyPhone::UpdateImmediateAlerts() {
8282
switch (lastLevel) {
8383
case Pinetime::Controllers::ImmediateAlertClient::Levels::NoAlert:
84-
lv_obj_set_style_local_text_color(lblTitle, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::lightGray);
84+
lv_obj_set_style_local_text_color(lblTitle, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE);
8585
break;
8686
case Pinetime::Controllers::ImmediateAlertClient::Levels::HighAlert:
8787
lv_obj_set_style_local_text_color(lblTitle, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_RED);
@@ -115,5 +115,5 @@ void FindMyPhone::StopRestoreLabelTask() {
115115

116116
void FindMyPhone::RestoreLabelText() {
117117
lv_label_set_text_static(lblTitle, defaultLabelText);
118-
lv_obj_set_style_local_text_color(lblTitle, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::lightGray);
118+
lv_obj_set_style_local_text_color(lblTitle, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE);
119119
}

0 commit comments

Comments
 (0)