weather: align watch detail buttons with ordering and theming rules
- Commit
7ea4736de7d7e2e3a74cc81a9627ebb6832f349f- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-06 04:27 UTC (4 hours ago)
- Parents
b395a4f
watch location detail already ends with Open on phone; its icon now tints to the button content color. No Delete: the wear protocol is a read-only snapshot with no op channel, and locations are managed on the phone. Verified: :weather:lint green (plus :weather:testDevUnitTest where the module has watch-relevant tests in this sweep).
Diff
weather/src/main/java/com/vayunmathur/weather/ui/WearLocationScreen.kt
diff --git a/weather/src/main/java/com/vayunmathur/weather/ui/WearLocationScreen.kt b/weather/src/main/java/com/vayunmathur/weather/ui/WearLocationScreen.ktindex 36f96341d2..83079aff33 100644--- a/weather/src/main/java/com/vayunmathur/weather/ui/WearLocationScreen.kt+++ b/weather/src/main/java/com/vayunmathur/weather/ui/WearLocationScreen.kt@@ -47,6 +47,6 @@ import kotlinx.coroutines.launch if(loc.daily.isNotEmpty()){ item{ Text(stringResource(R.string.wear_daily),style=MaterialTheme.typography.caption1,textAlign=TextAlign.Center,modifier=Modifier.fillMaxWidth().padding(horizontal=12.dp)) } items(loc.daily){d-> Chip(onClick={}, enabled=false,label={Text("${wearDayLabel(d.dateIso)} ${wearTemp(d.temperatureMinC,tempUnit)}–${wearTemp(d.temperatureMaxC,tempUnit)}",maxLines=1)},secondaryLabel={Text("${wearConditionLabel(d.weatherCode)} ${d.precipitationProbabilityMaxPercent}%",maxLines=1)},colors=ChipDefaults.secondaryChipColors(),modifier=Modifier.fillMaxWidth().padding(horizontal=8.dp))} } }- wearOpenOnPhoneItem(onClick={scope.launch{WearLinkBridge.get(ctx).sendMessage("/weather/open-on-phone",ByteArray(0))}},icon={IconMobileArrowRight(tint=androidx.compose.ui.graphics.Color.White)})+ wearOpenOnPhoneItem(onClick={scope.launch{WearLinkBridge.get(ctx).sendMessage("/weather/open-on-phone",ByteArray(0))}},icon={IconMobileArrowRight(tint=androidx.wear.compose.material.LocalContentColor.current)}) } }