music: align watch detail buttons with ordering and theming rules
- Commit
77682905752827606844842e35163ebcc4b1158a- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-06 04:27 UTC (7 hours ago)
- Parents
7ea4736
the now-playing/track screens already end with Open on phone, now rendered by the shared themed WearFilledButton seam (icon tinted to its content color) instead of a local button with a hard-coded tint. No Delete: the watch owns no music files and the phone exposes no delete-track capability to the wear protocol. Verified: :music:lint green (plus :music:testDevUnitTest where the module has watch-relevant tests in this sweep).
Diff
music/src/main/java/com/vayunmathur/music/ui/WearMusicRoot.kt
diff --git a/music/src/main/java/com/vayunmathur/music/ui/WearMusicRoot.kt b/music/src/main/java/com/vayunmathur/music/ui/WearMusicRoot.ktindex 12200a88ec..4be836c9a8 100644--- a/music/src/main/java/com/vayunmathur/music/ui/WearMusicRoot.kt+++ b/music/src/main/java/com/vayunmathur/music/ui/WearMusicRoot.kt@@ -25,6 +25,7 @@ import com.vayunmathur.library.wearlink.music.WearPageSnapshot import com.vayunmathur.library.wearlink.music.WearPlaybackState import com.vayunmathur.music.sync.WearLinkBridge import com.vayunmathur.library.ui.IconMobileArrowRight+import com.vayunmathur.library.wearlink.wearOpenOnPhoneItem /** Root switch over [WearRoute]: every phone page has exactly one watch screen here. */ @Composable@@ -94,21 +95,14 @@ internal fun ScalingLazyListScope.wearNavItem( /** Bottom open-on-phone button used by every non-home music screen (system back pops). */ internal fun ScalingLazyListScope.wearBackItem(onOpenOnPhone: () -> Unit) {- item {- androidx.wear.compose.material.Button(- onClick = onOpenOnPhone,- colors = androidx.wear.compose.material.ButtonDefaults.primaryButtonColors(),- modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp),- ) {- androidx.compose.foundation.layout.Row(- horizontalArrangement = androidx.compose.foundation.layout.Arrangement.Center,- modifier = Modifier.fillMaxWidth(),- ) {- com.vayunmathur.library.ui.IconMobileArrowRight(tint = androidx.compose.ui.graphics.Color.White)- Text("Open on phone", maxLines = 1, textAlign = TextAlign.Center)- }- }- }+ wearOpenOnPhoneItem(+ onClick = onOpenOnPhone,+ icon = {+ IconMobileArrowRight(+ tint = androidx.wear.compose.material.LocalContentColor.current,+ )+ },+ ) } /**