feat: update WatchStateIndicator and UnwatchedEpisodeIndicator sizes and styles

This commit is contained in:
2026-02-19 17:51:22 +01:00
parent f3dd2a0783
commit 17ddc0b160
2 changed files with 5 additions and 2 deletions

View File

@@ -80,18 +80,21 @@ fun PosterCard(
) )
when (item.type) { when (item.type) {
BaseItemKind.MOVIE -> WatchStateIndicator( BaseItemKind.MOVIE -> WatchStateIndicator(
size = 28,
modifier = Modifier.align(Alignment.TopEnd) modifier = Modifier.align(Alignment.TopEnd)
.padding(8.dp), .padding(8.dp),
watched = item.movie!!.watched, watched = item.movie!!.watched,
started = (item.movie.progress ?: 0.0) > 0 started = (item.movie.progress ?: 0.0) > 0
) )
BaseItemKind.EPISODE -> WatchStateIndicator( BaseItemKind.EPISODE -> WatchStateIndicator(
size = 28,
modifier = Modifier.align(Alignment.TopEnd) modifier = Modifier.align(Alignment.TopEnd)
.padding(8.dp), .padding(8.dp),
watched = item.episode!!.watched, watched = item.episode!!.watched,
started = (item.episode.progress ?: 0.0) > 0 started = (item.episode.progress ?: 0.0) > 0
) )
BaseItemKind.SERIES -> UnwatchedEpisodeIndicator( BaseItemKind.SERIES -> UnwatchedEpisodeIndicator(
size = 28,
modifier = Modifier.align(Alignment.TopEnd) modifier = Modifier.align(Alignment.TopEnd)
.padding(8.dp), .padding(8.dp),
unwatchedCount = item.series!!.unwatchedEpisodeCount unwatchedCount = item.series!!.unwatchedEpisodeCount

View File

@@ -39,8 +39,8 @@ fun UnwatchedEpisodeIndicator(
Text( Text(
text = if (unwatchedCount > 9) "9+" else unwatchedCount.toString(), text = if (unwatchedCount > 9) "9+" else unwatchedCount.toString(),
color = foregroundColor.copy(alpha = 0.8f), color = foregroundColor.copy(alpha = 0.8f),
fontWeight = FontWeight.Bold, fontWeight = FontWeight.W900,
fontSize = 12.sp fontSize = 15.sp
) )
} }
} }