add uvlux card (#2366)

Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
DaneEvans
2025-07-09 01:07:08 +10:00
committed by GitHub
parent 4fbd2ce28a
commit a8094f6ca4
2 changed files with 8 additions and 0 deletions

View File

@@ -811,6 +811,13 @@ private fun EnvironmentMetrics(
value = "%.0f lx".format(lux)
)
}
if (hasUvLux()) {
InfoCard(
icon = Icons.Default.LightMode, // You may want to use a different icon for UV
text = stringResource(R.string.uv_lux),
value = "%.0f lx".format(uvLux)
)
}
if (hasWindSpeed()) {
@Suppress("MagicNumber")
val normalizedBearing = (windDirection % 360 + 360) % 360

View File

@@ -729,4 +729,5 @@
<string name="unknown_channel">Unknown Channel</string>
<string name="warning">Warning</string>
<string name="overflow_menu">Overflow menu</string>
<string name="uv_lux">UV Lux</string>
</resources>