mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-29 06:44:22 +02:00
gloryfitpro: use a distinct icon for light rain
Map drizzle and light rain to icon code 3 (cloud + sun + rain) so they are visually distinct from plain rain (code 7); the watch has no lighter plain-rain icon. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
committed by
José Rebelo
co-authored by
Claude Opus 4.8
parent
705ea4b381
commit
40b6968e7a
+3
-2
@@ -573,8 +573,9 @@ class GloryFitProSupport : AbstractBTLESingleDeviceSupport(LOG) {
|
||||
*/
|
||||
private fun mapConditionToWatch(owm: Int): Int = when (owm) {
|
||||
in 200..232 -> 4 // thunderstorm
|
||||
in 300..399 -> 7 // drizzle -> rain (no lighter icon exists)
|
||||
500, 501 -> 7 // light / moderate rain
|
||||
in 300..399 -> 3 // drizzle -> light rain (cloud+sun+rain, visually lighter)
|
||||
500 -> 3 // light rain -> cloud+sun+rain
|
||||
501 -> 7 // rain
|
||||
502 -> 8 // heavy rain
|
||||
503, 504 -> 9 // very heavy / extreme rain
|
||||
511 -> 6 // freezing rain -> hail/ice
|
||||
|
||||
Reference in New Issue
Block a user