mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 15:32:50 -05:00
@@ -37,10 +37,10 @@ BasePill {
|
|||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: {
|
text: {
|
||||||
const temp = SettingsData.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp;
|
if (!WeatherService.weather.available) {
|
||||||
if (temp === undefined || temp === null || temp === 0) {
|
|
||||||
return "--";
|
return "--";
|
||||||
}
|
}
|
||||||
|
const temp = SettingsData.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp;
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
@@ -64,11 +64,10 @@ BasePill {
|
|||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: {
|
text: {
|
||||||
const temp = SettingsData.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp;
|
if (!WeatherService.weather.available) {
|
||||||
if (temp === undefined || temp === null || temp === 0) {
|
|
||||||
return "--°" + (SettingsData.useFahrenheit ? "F" : "C");
|
return "--°" + (SettingsData.useFahrenheit ? "F" : "C");
|
||||||
}
|
}
|
||||||
|
const temp = SettingsData.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp;
|
||||||
return temp + "°" + (SettingsData.useFahrenheit ? "F" : "C");
|
return temp + "°" + (SettingsData.useFahrenheit ? "F" : "C");
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
|
|||||||
Reference in New Issue
Block a user