fade the hero back button and brighten secondary text

This commit is contained in:
austinried
2026-10-04 00:29:53 +00:00
parent ee9376d059
commit 4c8f3e1740
3 changed files with 5 additions and 4 deletions
@@ -242,7 +242,7 @@ fun AlbumDetailScreen(
)
},
navigationIcon = {
IconButton(onClick = onBack) {
IconButton(onClick = onBack, modifier = Modifier.graphicsLayer { alpha = barFraction }) {
Icon(Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = "Back")
}
},
@@ -310,7 +310,7 @@ private fun AlbumHeader(
Text(
text = subtitle,
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurfaceVariant,
color = MaterialTheme.colorScheme.onBackground,
textAlign = TextAlign.Center,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
@@ -43,6 +43,7 @@ import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Shadow
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
@@ -213,7 +214,7 @@ fun ArtistDetailScreen(
)
},
navigationIcon = {
IconButton(onClick = onBack) {
IconButton(onClick = onBack, modifier = Modifier.graphicsLayer { alpha = barFraction }) {
Icon(
imageVector = Icons.AutoMirrored.Rounded.ArrowBack,
contentDescription = "Back",
@@ -132,7 +132,7 @@ fun SongRow(
supportingContent = {
Text(
text = song.artist.orEmpty().ifEmpty { "\u00A0" },
color = if (isPlaying) MaterialTheme.colorScheme.primary else Color.Unspecified,
color = if (isPlaying) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onBackground,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)