diff --git a/app/src/main/kotlin/com/shonar/desktop/Screens.kt b/app/src/main/kotlin/com/shonar/desktop/Screens.kt index 0d32599..280579e 100644 --- a/app/src/main/kotlin/com/shonar/desktop/Screens.kt +++ b/app/src/main/kotlin/com/shonar/desktop/Screens.kt @@ -636,17 +636,14 @@ fun DetailScreen(state: DesktopState) { Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) { if (isPlaying) { - if (transport) { - OutlinedButton({ state.setPaused(!ps.paused) }) { - Text(if (ps.paused) "Resume" else "Pause") - } - } else { - Button({ state.stopPlayback() }) { - Icon(Icons.Filled.Stop, contentDescription = null, - modifier = Modifier.size(18.dp)) - Spacer(Modifier.width(6.dp)) - Text("Stop") - } + // One Stop control, always present (the pause/resume pill + // was redundant: Stop already ends playback, and the + // separate Stop text button duplicated it). + Button({ state.stopPlayback() }) { + Icon(Icons.Filled.Stop, contentDescription = null, + modifier = Modifier.size(18.dp)) + Spacer(Modifier.width(6.dp)) + Text("Stop") } if (transport && ps.durationSec > 0) { val dur = ps.durationSec @@ -663,7 +660,6 @@ fun DetailScreen(state: DesktopState) { color = MaterialTheme.colorScheme.primary) Spacer(Modifier.weight(1f)) } - TextButton({ state.stopPlayback() }) { Text("Stop") } } else { OutlinedButton({ state.playFrom(detail.file) }) { Icon(Icons.Filled.PlayArrow, contentDescription = null,