forked from Shinonome/dots-hyprland
chore(WeatherService): rename to Weather
This commit is contained in:
@@ -33,7 +33,7 @@ Item {
|
||||
|
||||
MaterialSymbol {
|
||||
fill: 0
|
||||
text: WeatherIcons.codeToName[WeatherService.data.wCode]
|
||||
text: WeatherIcons.codeToName[Weather.data.wCode]
|
||||
iconSize: Appearance.font.pixelSize.large
|
||||
color: Appearance.colors.colOnLayer1
|
||||
}
|
||||
@@ -42,7 +42,7 @@ Item {
|
||||
visible: true
|
||||
font.pixelSize: Appearance.font.pixelSize.large
|
||||
color: Appearance.colors.colOnLayer1
|
||||
text: WeatherService.data.temp
|
||||
text: Weather.data.temp
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ Rectangle {
|
||||
}
|
||||
|
||||
StyledText {
|
||||
text: WeatherService.data.city
|
||||
text: Weather.data.city
|
||||
font.pixelSize: Appearance.font.pixelSize.title
|
||||
font.family: Appearance.font.family.title
|
||||
color: Appearance.colors.colOnLayer0
|
||||
@@ -52,42 +52,42 @@ Rectangle {
|
||||
WeatherCard {
|
||||
title: "UV Index"
|
||||
symbol: "wb_sunny"
|
||||
value: WeatherService.data.uv
|
||||
value: Weather.data.uv
|
||||
}
|
||||
WeatherCard {
|
||||
title: "Wind"
|
||||
symbol: "air"
|
||||
value: `(${WeatherService.data.windDir}) ${WeatherService.data.wind}`
|
||||
value: `(${Weather.data.windDir}) ${Weather.data.wind}`
|
||||
}
|
||||
WeatherCard {
|
||||
title: "Precipitation"
|
||||
symbol: "rainy_light"
|
||||
value: WeatherService.data.precip
|
||||
value: Weather.data.precip
|
||||
}
|
||||
WeatherCard {
|
||||
title: "Humidity"
|
||||
symbol: "humidity_low"
|
||||
value: WeatherService.data.humidity
|
||||
value: Weather.data.humidity
|
||||
}
|
||||
WeatherCard {
|
||||
title: "Visibility"
|
||||
symbol: "visibility"
|
||||
value: WeatherService.data.visib
|
||||
value: Weather.data.visib
|
||||
}
|
||||
WeatherCard {
|
||||
title: "Pressure"
|
||||
symbol: "readiness_score"
|
||||
value: WeatherService.data.press
|
||||
value: Weather.data.press
|
||||
}
|
||||
WeatherCard {
|
||||
title: "Sunrise"
|
||||
symbol: "wb_twilight"
|
||||
value: WeatherService.data.sunrise
|
||||
value: Weather.data.sunrise
|
||||
}
|
||||
WeatherCard {
|
||||
title: "Sunset"
|
||||
symbol: "bedtime"
|
||||
value: WeatherService.data.sunset
|
||||
value: Weather.data.sunset
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user