Bare, larger channel logos (no tile box)
Some checks failed
Build TV app / build (push) Failing after 3s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-26 01:20:22 +02:00
parent 17ff402de0
commit 4936a80296
2 changed files with 5 additions and 11 deletions

View File

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

View File

@@ -337,24 +337,18 @@ private fun ChannelRow(
}
}
/** Channel logo in a small tile; initials while loading or without a logo. */
/** Bare channel logo (they ship transparent); initials as fallback. */
@Composable
private fun LogoTile(channel: Channel) {
val initials = channel.name.split(" ").filter { it.isNotBlank() }
.take(2).map { it.first() }.joinToString("").uppercase()
Box(
Modifier
.size(38.dp)
.clip(RoundedCornerShape(8.dp))
.background(CastarrColors.surfaceFocused),
contentAlignment = Alignment.Center,
) {
Box(Modifier.size(width = 52.dp, height = 40.dp), contentAlignment = Alignment.Center) {
if (channel.logo.isNotEmpty()) {
SubcomposeAsyncImage(
model = channel.logo,
contentDescription = null,
contentScale = ContentScale.Fit,
modifier = Modifier.fillMaxSize().padding(5.dp),
modifier = Modifier.fillMaxSize(),
loading = { LogoInitials(initials) },
error = { LogoInitials(initials) },
)