Skip to content

Commit 226213e

Browse files
author
Ruslan
committed
Display max temp as text for now
1 parent eb73935 commit 226213e

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

ui/api.slint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export global Api {
2424
in-out property <bool> is-yellow-bin: true;
2525
in-out property <int> days-to-bin: 0;
2626

27-
in-out property <[WeatherDaily]> weather_daily;
27+
in-out property <[WeatherDaily]> weather-daily;
2828

2929
in-out property <Coordinates> coordinates: {
3030
latitude: 0,

ui/pages/home_page.slint

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export component HomePage {
2525
}
2626
}
2727

28+
VerticalLayout {
29+
for day[index] in Api.weather-daily: Text {
30+
text: day.temperature-max;
31+
}
32+
}
33+
2834
HorizontalLayout {
2935

3036
Button {

0 commit comments

Comments
 (0)