clock: align watch detail buttons with ordering and theming rules
- Commit
7a9e92d67f42cbb6ebc81310cf46ccd776289eb5- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-06 04:27 UTC (3 hours ago)
- Parents
7fb8023
clock alarm detail already ends with Open on phone; its icon now tints to the button content color and the unused delete imports are gone. No watch Delete: the watch alarm surface is synced display/arming only (no watch-originated write channel beyond request-sync), so a delete would fake a phone change. Verified: :clock:lint green (plus :clock:testDevUnitTest where the module has watch-relevant tests in this sweep).
Diff
clock/src/main/java/com/vayunmathur/clock/ui/WearAlarmDetailScreen.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/WearAlarmDetailScreen.kt b/clock/src/main/java/com/vayunmathur/clock/ui/WearAlarmDetailScreen.ktindex c7346670ba..903ed6b444 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/WearAlarmDetailScreen.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/WearAlarmDetailScreen.kt@@ -3,8 +3,6 @@ import com.vayunmathur.library.wearlink.wearOpenOnPhoneItem import com.vayunmathur.library.ui.IconMobileArrowRight import androidx.compose.runtime.rememberCoroutineScope import kotlinx.coroutines.launch-import com.vayunmathur.library.ui.IconDelete-import com.vayunmathur.library.wearlink.wearDeleteItem import android.content.Intent import android.net.Uri@@ -21,6 +19,7 @@ import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp import androidx.wear.compose.foundation.lazy.ScalingLazyColumn import androidx.wear.compose.material.Chip+import androidx.wear.compose.material.LocalContentColor import androidx.wear.compose.material.ChipDefaults import androidx.wear.compose.material.MaterialTheme import androidx.wear.compose.material.Text@@ -145,7 +144,7 @@ fun WearAlarmDetailScreen(store: WearClockStore, alarmId: Long, onBack: () -> Un } } }- wearOpenOnPhoneItem(onClick = { scope.launch { WearLinkBridge.get(context).sendMessage("/clock/open-on-phone", ByteArray(0)) } }, icon = { IconMobileArrowRight(tint = androidx.compose.ui.graphics.Color.White) })+ wearOpenOnPhoneItem(onClick = { scope.launch { WearLinkBridge.get(context).sendMessage("/clock/open-on-phone", ByteArray(0)) } }, icon = { IconMobileArrowRight(tint = LocalContentColor.current) }) } }