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) {
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user