in src/main/kotlin/org/jetbrains/plugins/template/weatherApp/ui/components/WeatherDetailsCard.kt [638:647]
fun getCardColorByTemperature(temperature: Float, isNightTime: Boolean): Color {
return when {
isNightTime -> WeatherAppColors.nightWeatherColor
temperature < 0 -> WeatherAppColors.coldWeatherColor
temperature < 10 -> WeatherAppColors.coolWeatherColor
temperature < 20 -> WeatherAppColors.mildWeatherColor
temperature < 30 -> WeatherAppColors.warmWeatherColor
else -> WeatherAppColors.hotWeatherColor
}
}