WeatherCard: Vertical centering of icons
This commit is contained in:
parent
d76d1c628a
commit
cfd7dec04d
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ NBox {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: Style.marginS * scaling
|
spacing: Style.marginS * scaling
|
||||||
NIcon {
|
NIcon {
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
icon: weatherReady ? LocationService.weatherSymbolFromCode(
|
icon: weatherReady ? LocationService.weatherSymbolFromCode(
|
||||||
LocationService.data.weather.current_weather.weathercode) : ""
|
LocationService.data.weather.current_weather.weathercode) : ""
|
||||||
font.pointSize: Style.fontSizeXXXL * 1.75 * scaling
|
font.pointSize: Style.fontSizeXXXL * 1.75 * scaling
|
||||||
|
|
@ -98,6 +99,7 @@ NBox {
|
||||||
color: Color.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
NIcon {
|
NIcon {
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
icon: LocationService.weatherSymbolFromCode(LocationService.data.weather.daily.weathercode[index])
|
icon: LocationService.weatherSymbolFromCode(LocationService.data.weather.daily.weathercode[index])
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue