mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
feat: update WatchStateIndicator and UnwatchedEpisodeIndicator sizes and styles
This commit is contained in:
@@ -80,18 +80,21 @@ fun PosterCard(
|
||||
)
|
||||
when (item.type) {
|
||||
BaseItemKind.MOVIE -> WatchStateIndicator(
|
||||
size = 28,
|
||||
modifier = Modifier.align(Alignment.TopEnd)
|
||||
.padding(8.dp),
|
||||
watched = item.movie!!.watched,
|
||||
started = (item.movie.progress ?: 0.0) > 0
|
||||
)
|
||||
BaseItemKind.EPISODE -> WatchStateIndicator(
|
||||
size = 28,
|
||||
modifier = Modifier.align(Alignment.TopEnd)
|
||||
.padding(8.dp),
|
||||
watched = item.episode!!.watched,
|
||||
started = (item.episode.progress ?: 0.0) > 0
|
||||
)
|
||||
BaseItemKind.SERIES -> UnwatchedEpisodeIndicator(
|
||||
size = 28,
|
||||
modifier = Modifier.align(Alignment.TopEnd)
|
||||
.padding(8.dp),
|
||||
unwatchedCount = item.series!!.unwatchedEpisodeCount
|
||||
|
||||
@@ -39,8 +39,8 @@ fun UnwatchedEpisodeIndicator(
|
||||
Text(
|
||||
text = if (unwatchedCount > 9) "9+" else unwatchedCount.toString(),
|
||||
color = foregroundColor.copy(alpha = 0.8f),
|
||||
fontWeight = FontWeight.Bold,
|
||||
fontSize = 12.sp
|
||||
fontWeight = FontWeight.W900,
|
||||
fontSize = 15.sp
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user