Skip to content

Commit 842f854

Browse files
committed
WatchFaceDigital: Move weather widget away from status icons
The weather widget is too high and could overlap the status icons. Moving it to match the rest of the face avoids this issue and makes it align with the rest of the theme.
1 parent 44be356 commit 842f854

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/displayapp/screens/WatchFaceDigital.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ WatchFaceDigital::WatchFaceDigital(Controllers::DateTime& dateTimeController,
4040
lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_TOP_LEFT, 0, 0);
4141

4242
weatherIcon = lv_label_create(lv_scr_act(), nullptr);
43-
lv_obj_set_style_local_text_color(weatherIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE);
43+
lv_obj_set_style_local_text_color(weatherIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x999999));
4444
lv_obj_set_style_local_text_font(weatherIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &fontawesome_weathericons);
4545
lv_label_set_text(weatherIcon, "");
46-
lv_obj_align(weatherIcon, nullptr, LV_ALIGN_IN_TOP_MID, -20, 0);
46+
lv_obj_align(weatherIcon, nullptr, LV_ALIGN_IN_TOP_MID, -20, 50);
4747
lv_obj_set_auto_realign(weatherIcon, true);
4848

4949
temperature = lv_label_create(lv_scr_act(), nullptr);
50-
lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE);
50+
lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x999999));
5151
lv_label_set_text(temperature, "");
52-
lv_obj_align(temperature, nullptr, LV_ALIGN_IN_TOP_MID, 20, 0);
52+
lv_obj_align(temperature, nullptr, LV_ALIGN_IN_TOP_MID, 20, 50);
5353

5454
label_date = lv_label_create(lv_scr_act(), nullptr);
5555
lv_obj_align(label_date, lv_scr_act(), LV_ALIGN_CENTER, 0, 60);

0 commit comments

Comments
 (0)