From 6292f4028137817900ec1e06c66d61ee55c7d55c Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Mon, 19 Jun 2023 20:40:00 +0200 Subject: [PATCH] Weather widget: add more color accents --- .../ui/launcher/widgets/weather/WeatherWidget.kt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/widgets/weather/WeatherWidget.kt b/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/widgets/weather/WeatherWidget.kt index 2701fae4..31d4f102 100644 --- a/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/widgets/weather/WeatherWidget.kt +++ b/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/widgets/weather/WeatherWidget.kt @@ -261,12 +261,13 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) { Icon( imageVector = Icons.Rounded.HumidityPercentage, modifier = Modifier.size(20.dp), + tint = MaterialTheme.colorScheme.secondary, contentDescription = null ) Spacer(modifier = Modifier.padding(3.dp)) Text( text = "${forecast.humidity!!.roundToInt()} %", - style = MaterialTheme.typography.bodySmall + style = MaterialTheme.typography.bodySmall, ) } } @@ -282,13 +283,15 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) { modifier = Modifier .rotate(angle) .size(20.dp), - contentDescription = null + contentDescription = null, + tint = MaterialTheme.colorScheme.secondary, ) } else { Icon( imageVector = Icons.Rounded.Air, contentDescription = null, - modifier = Modifier.size(20.dp) + modifier = Modifier.size(20.dp), + tint = MaterialTheme.colorScheme.secondary, ) } Spacer(modifier = Modifier.padding(3.dp)) @@ -298,7 +301,7 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) { } else { windDirectionAsWord(forecast.windDirection!!) }, - style = MaterialTheme.typography.bodySmall + style = MaterialTheme.typography.bodySmall, ) } } @@ -309,12 +312,13 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) { Icon( imageVector = Icons.Rounded.Rain, modifier = Modifier.size(20.dp), - contentDescription = null + contentDescription = null, + tint = MaterialTheme.colorScheme.secondary, ) Spacer(modifier = Modifier.padding(3.dp)) Text( text = formatPrecipitation(imperialUnits, forecast), - style = MaterialTheme.typography.bodySmall + style = MaterialTheme.typography.bodySmall, ) } }