WeatherCard: Vertical centering of icons

This commit is contained in:
LemmyCook 2025-09-09 09:13:27 -04:00
parent d76d1c628a
commit cfd7dec04d

View file

@ -27,6 +27,7 @@ NBox {
RowLayout {
spacing: Style.marginS * scaling
NIcon {
Layout.alignment: Qt.AlignVCenter
icon: weatherReady ? LocationService.weatherSymbolFromCode(
LocationService.data.weather.current_weather.weathercode) : ""
font.pointSize: Style.fontSizeXXXL * 1.75 * scaling
@ -98,6 +99,7 @@ NBox {
color: Color.mOnSurface
}
NIcon {
Layout.alignment: Qt.AlignVCenter
icon: LocationService.weatherSymbolFromCode(LocationService.data.weather.daily.weathercode[index])
font.pointSize: Style.fontSizeXXL * scaling
color: Color.mPrimary
@ -128,4 +130,4 @@ NBox {
NBusyIndicator {}
}
}
}
}