centered tempeture and fixed Icon

This commit is contained in:
locker98 2024-05-09 11:34:18 -04:00
parent 40ef10113f
commit e2ccc5624c

View File

@ -71,7 +71,7 @@ WatchFaceCasioStyleG7710::WatchFaceCasioStyleG7710(Controllers::DateTime& dateTi
temperature = lv_label_create(lv_scr_act(), nullptr);
lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x999999));
lv_label_set_text(temperature, "");
lv_obj_align(temperature, nullptr, LV_ALIGN_IN_BOTTOM_MID, 20, 2);
lv_obj_align(temperature, nullptr, LV_ALIGN_IN_BOTTOM_MID, 20, 4);
@ -327,7 +327,7 @@ void WatchFaceCasioStyleG7710::Refresh() {
}
temp = temp / 100 + (temp % 100 >= 50 ? 1 : 0);
lv_label_set_text_fmt(temperature, "%d°%c", temp, tempUnit);
lv_label_set_text(weatherIcon, Symbols::shoe); //GetSymbol(optCurrentWeather->iconId));
lv_label_set_text(weatherIcon, Symbols::GetSymbol(optCurrentWeather->iconId));
} else {
lv_label_set_text_static(temperature, "");
lv_label_set_text(weatherIcon, "");