Modern Apps git

← Modern-Apps.git

notes: align watch detail buttons with ordering and theming rules

Commit
5e4a2303a53c25b7a64f3e7621afd975e69681f1
Author
Vayun Mathur <[email protected]>
When
2026-12-06 04:28 UTC (8 hours ago)
Parents
3b8f0e0
watch note detail already ordered Edit, Open on phone, Delete note correctly; the Edit chip gains its icon and both icons now tint to the button content color instead of a hard-coded white.

Verified: :notes:lint green (plus :notes:testDevUnitTest where the module has watch-relevant tests in this sweep).

Diff

notes/src/main/java/com/vayunmathur/notes/ui/WearNoteScreen.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/ui/WearNoteScreen.kt b/notes/src/main/java/com/vayunmathur/notes/ui/WearNoteScreen.ktindex 1c5564fdc2..52a9c4c9ad 100644--- a/notes/src/main/java/com/vayunmathur/notes/ui/WearNoteScreen.kt+++ b/notes/src/main/java/com/vayunmathur/notes/ui/WearNoteScreen.kt@@ -6,6 +6,7 @@ import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.ui.platform.LocalContext import kotlinx.coroutines.launch import com.vayunmathur.library.ui.IconDelete+import com.vayunmathur.library.ui.IconEdit import com.vayunmathur.library.wearlink.wearDeleteItem  import androidx.compose.foundation.layout.fillMaxWidth@@ -20,6 +21,7 @@ import androidx.compose.ui.unit.dp import androidx.wear.compose.foundation.lazy.ScalingLazyColumn import androidx.wear.compose.foundation.lazy.rememberScalingLazyListState 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@@ -112,15 +114,16 @@ internal fun WearNoteContent(                     Chip(                         onClick = { onEdit(note.syncId) },                         label = { Text(stringResource(R.string.wear_edit), maxLines = 1) },+                        icon = { IconEdit(tint = LocalContentColor.current) },                         colors = ChipDefaults.secondaryChipColors(),                         modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp),                     )                 }             }         }-        wearOpenOnPhoneItem(onClick = { scope.launch { WearLinkBridge.get(context).sendMessage("/notes/open-on-phone", ByteArray(0)) } }, icon = { IconMobileArrowRight(tint = androidx.compose.ui.graphics.Color.White) })+        wearOpenOnPhoneItem(onClick = { scope.launch { WearLinkBridge.get(context).sendMessage("/notes/open-on-phone", ByteArray(0)) } }, icon = { IconMobileArrowRight(tint = LocalContentColor.current) })         if (note != null) {-            wearDeleteItem(label = "Delete note", onClick = { onDelete(note.syncId) }, icon = { IconDelete(tint = androidx.compose.ui.graphics.Color.White) })+            wearDeleteItem(label = "Delete note", onClick = { onDelete(note.syncId) }, icon = { IconDelete(tint = LocalContentColor.current) })         }     } }