fix: actually display temp in fahrenheit

This commit is contained in:
2 * r + 2 * t 2026-04-26 01:40:55 +10:00
parent 81fc9dda02
commit 10feabc5a7

View file

@ -93,7 +93,7 @@ StyledRect {
}
StyledText {
text: Math.round(root.temperature) + (GlobalConfig.services.useFahrenheitPerformance ? "°F" : "°C")
text: `${Math.ceil(GlobalConfig.services.useFahrenheitPerformance ? root.temperature * 1.8 + 32 : root.temperature)}°${GlobalConfig.services.useFahrenheitPerformance ? "F" : "C"}`
font: Tokens.font.body.builders.medium.build()
}
}