Nicer weather card

This commit is contained in:
quadbyte 2025-08-12 10:08:33 -04:00
parent 091d7bf5a3
commit 0202965f65

View file

@ -33,19 +33,14 @@ NBox {
} }
ColumnLayout { ColumnLayout {
RowLayout {
NText { NText {
text: Settings.data.location.name text: Settings.data.location.name
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
font.pointSize: Style.fontSizeXL * scaling font.pointSize: Style.fontSizeXL * scaling
} }
NText {
text: weatherReady ? `(${Location.data.weather.timezone_abbreviation})` : ""
font.pointSize: Style.fontSizeSmall * scaling
visible: Location.data.weather
}
}
RowLayout {
NText { NText {
visible: weatherReady visible: weatherReady
text: { text: {
@ -62,6 +57,13 @@ NBox {
font.pointSize: Style.fontSizeXL * scaling font.pointSize: Style.fontSizeXL * scaling
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
} }
NText {
text: weatherReady ? `(${Location.data.weather.timezone_abbreviation})` : ""
font.pointSize: Style.fontSizeSmall * scaling
visible: Location.data.weather
}
}
} }
} }