weather applet: convert newlines to br for RichText rendering

This commit is contained in:
Damocles 2026-04-22 22:20:08 +02:00
parent 662c3590af
commit 0e9c1723f2

View file

@ -26,7 +26,7 @@ Column {
Text {
width: parent.width - 24
anchors.horizontalCenter: parent.horizontalCenter
text: S.WeatherService.tooltip
text: S.WeatherService.tooltip.replace(/\n/g, "<br>")
textFormat: Text.RichText
color: S.Theme.base05
font.pixelSize: S.Theme.fontSize - 2