mirror of
https://github.com/skoelle/wt32sc01-dashboard.git
synced 2026-09-17 17:30:25 +00:00
weather UI update
This commit is contained in:
@@ -53,6 +53,7 @@ void buildList() {
|
|||||||
|
|
||||||
// icon - use weather symbol
|
// icon - use weather symbol
|
||||||
lv_obj_t *icon = Icons::createWeatherIcon(row, fe.symbol, fe.description, 24);
|
lv_obj_t *icon = Icons::createWeatherIcon(row, fe.symbol, fe.description, 24);
|
||||||
|
lv_obj_align(icon, LV_ALIGN_TOP_LEFT, 10, 0);
|
||||||
|
|
||||||
// time column
|
// time column
|
||||||
lv_obj_t *time_label = lv_label_create(row);
|
lv_obj_t *time_label = lv_label_create(row);
|
||||||
@@ -75,7 +76,7 @@ void buildList() {
|
|||||||
}
|
}
|
||||||
lv_obj_t *desc_label = lv_label_create(row);
|
lv_obj_t *desc_label = lv_label_create(row);
|
||||||
lv_label_set_text(desc_label, desc.c_str());
|
lv_label_set_text(desc_label, desc.c_str());
|
||||||
lv_obj_set_style_text_color(desc_label, Theme::textDim(), 0);
|
lv_obj_set_style_text_color(desc_label, fe.precipitationType == "rain" ? Theme::accentRain() : Theme::textDim(), 0);
|
||||||
lv_obj_align(desc_label, LV_ALIGN_TOP_LEFT, 220, 0);
|
lv_obj_align(desc_label, LV_ALIGN_TOP_LEFT, 220, 0);
|
||||||
|
|
||||||
// rain probability column - show percentage for rain
|
// rain probability column - show percentage for rain
|
||||||
|
|||||||
Reference in New Issue
Block a user