mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
Fix MediaActionButton size on SeriesScreen
This commit is contained in:
@@ -194,15 +194,6 @@ internal fun EpisodeDetails(
|
|||||||
Spacer(modifier = Modifier.height(24.dp))
|
Spacer(modifier = Modifier.height(24.dp))
|
||||||
|
|
||||||
Row() {
|
Row() {
|
||||||
// MediaPlayButton(
|
|
||||||
// backgroundColor = MaterialTheme.colorScheme.primary,
|
|
||||||
// foregroundColor = MaterialTheme.colorScheme.onPrimary,
|
|
||||||
// text = if (episode.progress == null) "Play" else "Resume",
|
|
||||||
// subText = if (episode.progress == null) null else "${episode.progress.toInt() }%",
|
|
||||||
// modifier = Modifier.weight(1f),
|
|
||||||
// size = 48.dp,
|
|
||||||
// onClick = playAction
|
|
||||||
// )
|
|
||||||
MediaResumeButton(
|
MediaResumeButton(
|
||||||
text = if (episode.progress == null) "Play" else "Resume",
|
text = if (episode.progress == null) "Play" else "Resume",
|
||||||
progress = episode.progress?.div(100)?.toFloat() ?: 0f,
|
progress = episode.progress?.div(100)?.toFloat() ?: 0f,
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ internal fun SeriesActionButtons(
|
|||||||
backgroundColor = MaterialTheme.colorScheme.secondary,
|
backgroundColor = MaterialTheme.colorScheme.secondary,
|
||||||
iconColor = MaterialTheme.colorScheme.onSecondary,
|
iconColor = MaterialTheme.colorScheme.onSecondary,
|
||||||
icon = Icons.Outlined.Add,
|
icon = Icons.Outlined.Add,
|
||||||
height = 32.dp
|
height = 48.dp
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.width(12.dp))
|
Spacer(modifier = Modifier.width(12.dp))
|
||||||
MediaActionButton(
|
MediaActionButton(
|
||||||
@@ -177,7 +177,7 @@ internal fun SeriesActionButtons(
|
|||||||
seriesDownloadState is DownloadState.Downloaded -> Icons.Outlined.DownloadDone
|
seriesDownloadState is DownloadState.Downloaded -> Icons.Outlined.DownloadDone
|
||||||
else -> Icons.Outlined.Download
|
else -> Icons.Outlined.Download
|
||||||
},
|
},
|
||||||
height = 32.dp,
|
height = 48.dp,
|
||||||
onClick = { showDownloadDialog = true }
|
onClick = { showDownloadDialog = true }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user