Weather widget: add more color accents
This commit is contained in:
parent
0287b5e583
commit
6292f40281
@ -261,12 +261,13 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) {
|
|||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Rounded.HumidityPercentage,
|
imageVector = Icons.Rounded.HumidityPercentage,
|
||||||
modifier = Modifier.size(20.dp),
|
modifier = Modifier.size(20.dp),
|
||||||
|
tint = MaterialTheme.colorScheme.secondary,
|
||||||
contentDescription = null
|
contentDescription = null
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.padding(3.dp))
|
Spacer(modifier = Modifier.padding(3.dp))
|
||||||
Text(
|
Text(
|
||||||
text = "${forecast.humidity!!.roundToInt()} %",
|
text = "${forecast.humidity!!.roundToInt()} %",
|
||||||
style = MaterialTheme.typography.bodySmall
|
style = MaterialTheme.typography.bodySmall,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -282,13 +283,15 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) {
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.rotate(angle)
|
.rotate(angle)
|
||||||
.size(20.dp),
|
.size(20.dp),
|
||||||
contentDescription = null
|
contentDescription = null,
|
||||||
|
tint = MaterialTheme.colorScheme.secondary,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Rounded.Air,
|
imageVector = Icons.Rounded.Air,
|
||||||
contentDescription = null,
|
contentDescription = null,
|
||||||
modifier = Modifier.size(20.dp)
|
modifier = Modifier.size(20.dp),
|
||||||
|
tint = MaterialTheme.colorScheme.secondary,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Spacer(modifier = Modifier.padding(3.dp))
|
Spacer(modifier = Modifier.padding(3.dp))
|
||||||
@ -298,7 +301,7 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) {
|
|||||||
} else {
|
} else {
|
||||||
windDirectionAsWord(forecast.windDirection!!)
|
windDirectionAsWord(forecast.windDirection!!)
|
||||||
},
|
},
|
||||||
style = MaterialTheme.typography.bodySmall
|
style = MaterialTheme.typography.bodySmall,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -309,12 +312,13 @@ fun CurrentWeather(forecast: Forecast, imperialUnits: Boolean) {
|
|||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Rounded.Rain,
|
imageVector = Icons.Rounded.Rain,
|
||||||
modifier = Modifier.size(20.dp),
|
modifier = Modifier.size(20.dp),
|
||||||
contentDescription = null
|
contentDescription = null,
|
||||||
|
tint = MaterialTheme.colorScheme.secondary,
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.padding(3.dp))
|
Spacer(modifier = Modifier.padding(3.dp))
|
||||||
Text(
|
Text(
|
||||||
text = formatPrecipitation(imperialUnits, forecast),
|
text = formatPrecipitation(imperialUnits, forecast),
|
||||||
style = MaterialTheme.typography.bodySmall
|
style = MaterialTheme.typography.bodySmall,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user