From 96b24e9fede9706fc4693927f0f28def1e4cd5f1 Mon Sep 17 00:00:00 2001 From: timklge <2026103+timklge@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:13:13 +0100 Subject: [PATCH] fix #42: Replace precipitation separator with space (#45) --- .../kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt index b35d6bd..9fa656f 100644 --- a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt +++ b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt @@ -119,7 +119,7 @@ fun Weather(baseBitmap: Bitmap, current: WeatherInterpretation, windBearing: Int Spacer(modifier = GlanceModifier.width(5.dp)) } - val precipitationProbabilityLabel = if (precipitationProbability != null) "${precipitationProbability}%," else "" + val precipitationProbabilityLabel = if (precipitationProbability != null) "${precipitationProbability}% " else "" Text( text = "${precipitationProbabilityLabel}${ceil(precipitation).toInt().coerceIn(0..9)}", style = TextStyle(color = ColorProvider(Color.Black, Color.White), fontFamily = FontFamily.Monospace, fontSize = TextUnit(fontSize, TextUnitType.Sp))