refactor: update MediaActionButton styles for improved consistency

This commit is contained in:
2026-05-01 11:36:03 +02:00
parent 7c38d22717
commit 56c4991467
6 changed files with 22 additions and 26 deletions

View File

@@ -142,15 +142,15 @@ internal fun EpisodeDetails(
)
VerticalDivider(
color = MaterialTheme.colorScheme.secondary,
thickness = 4.dp,
thickness = 2.dp,
modifier = Modifier
.height(48.dp)
.padding(horizontal = 16.dp, vertical = 8.dp)
)
Row() {
MediaActionButton(
backgroundColor = MaterialTheme.colorScheme.secondary,
iconColor = MaterialTheme.colorScheme.onSecondary,
backgroundColor = MaterialTheme.colorScheme.surface,
iconColor = MaterialTheme.colorScheme.onSurface,
icon = when (downloadState) {
is DownloadState.NotDownloaded -> Icons.Outlined.Download
is DownloadState.Downloading -> Icons.Outlined.Close

View File

@@ -45,7 +45,6 @@ internal fun MovieTopBar(
onBack: () -> Unit,
modifier: Modifier = Modifier
) {
val scheme = MaterialTheme.colorScheme
Row(
modifier = modifier
.fillMaxWidth()
@@ -107,8 +106,8 @@ internal fun MovieDetails(
)
Row() {
MediaActionButton(
backgroundColor = MaterialTheme.colorScheme.secondary,
iconColor = MaterialTheme.colorScheme.onSecondary,
backgroundColor = MaterialTheme.colorScheme.surface,
iconColor = MaterialTheme.colorScheme.onSurface,
icon = when (downloadState) {
is DownloadState.NotDownloaded -> Icons.Outlined.Download
is DownloadState.Downloading -> Icons.Outlined.Close

View File

@@ -103,7 +103,6 @@ private fun SeriesScreenInternal(
modifier: Modifier = Modifier,
) {
val scheme = MaterialTheme.colorScheme
val textMutedStrong = scheme.onSurfaceVariant.copy(alpha = 0.7f)
fun getDefaultSeason() : Season {
for (season in series.seasons) {
@@ -162,7 +161,7 @@ private fun SeriesScreenInternal(
Spacer(modifier = Modifier.height(24.dp))
MediaSynopsis(
synopsis = series.synopsis,
bodyColor = textMutedStrong,
bodyColor = scheme.onSurface,
bodyFontSize = 13.sp,
bodyLineHeight = null,
titleSpacing = 8.dp

View File

@@ -151,15 +151,15 @@ internal fun SeriesActionButtons(
Spacer(modifier = Modifier.width(12.dp))
}
MediaActionButton(
backgroundColor = MaterialTheme.colorScheme.secondary,
iconColor = MaterialTheme.colorScheme.onSecondary,
backgroundColor = MaterialTheme.colorScheme.surface,
iconColor = MaterialTheme.colorScheme.onSurface,
icon = Icons.Outlined.Add,
height = 48.dp
)
Spacer(modifier = Modifier.width(12.dp))
MediaActionButton(
backgroundColor = scheme.secondary,
iconColor = scheme.onSecondary,
backgroundColor = MaterialTheme.colorScheme.surface,
iconColor = MaterialTheme.colorScheme.onSurface,
icon = when {
seriesDownloadState is DownloadState.Downloading -> Icons.Outlined.Close
seriesDownloadState is DownloadState.Downloaded -> Icons.Outlined.DownloadDone