Key-hint row in player overlay instead of on-screen buttons

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-25 23:59:11 +02:00
parent 081a552400
commit 67639660bc
2 changed files with 17 additions and 9 deletions

View File

@@ -12,8 +12,8 @@ android {
applicationId = "dev.castarr.tv" applicationId = "dev.castarr.tv"
minSdk = 26 minSdk = 26
targetSdk = 35 targetSdk = 35
versionCode = 7 versionCode = 8
versionName = "0.3.1" versionName = "0.4.0"
} }
// Release signing from environment (see ~/.keys/castarr-release.env on the // Release signing from environment (see ~/.keys/castarr-release.env on the

View File

@@ -248,15 +248,23 @@ private fun Overlay(state: AppState) {
) )
} }
} }
Spacer(Modifier.weight(1f)) }
}
Spacer(Modifier.height(12.dp))
// Key hints instead of on-screen buttons — nothing to focus,
// nothing to get stuck on (#14 spirit).
val trickplay = when {
state.audioTracks.size > 1 -> " · ◀ ▶ Tonspur"
state.player.player.isCurrentMediaItemSeekable -> " · ◀ ▶ Spulen"
else -> ""
}
Text( Text(
"◀ ▶ wechselt die Tonspur", "OK Pause/Weiter · ▲ ▼ Sender$trickplay · Zurück Beenden",
color = CastarrColors.faint, color = CastarrColors.faint,
fontFamily = AppFont, fontFamily = AppFont,
fontSize = 11.sp, fontSize = 12.sp,
) )
} }
} }
} }
}
}