one-line artist title, shared with the header style

This commit is contained in:
austinried
2026-10-04 00:29:52 +00:00
parent c44f1d31bb
commit ed306dfea4
@@ -108,8 +108,9 @@ fun ArtistDetailScreen(
} }
} }
} }
val nameTextStyle = MaterialTheme.typography.headlineLarge
val imageNameStyle = val imageNameStyle =
MaterialTheme.typography.headlineLarge.copy( nameTextStyle.copy(
shadow = shadow =
Shadow( Shadow(
color = Color.Black.copy(alpha = 0.8f), color = Color.Black.copy(alpha = 0.8f),
@@ -118,7 +119,7 @@ fun ArtistDetailScreen(
), ),
) )
val barNameStyle = val barNameStyle =
MaterialTheme.typography.headlineLarge.copy( nameTextStyle.copy(
shadow = shadow =
Shadow( Shadow(
color = Color.Black.copy(alpha = 0.8f * barFraction), color = Color.Black.copy(alpha = 0.8f * barFraction),
@@ -147,7 +148,7 @@ fun ArtistDetailScreen(
text = artist?.name.orEmpty(), text = artist?.name.orEmpty(),
style = imageNameStyle, style = imageNameStyle,
color = Color.White, color = Color.White,
maxLines = 2, maxLines = 1,
overflow = TextOverflow.Ellipsis, overflow = TextOverflow.Ellipsis,
modifier = Modifier.align(Alignment.BottomStart).padding(TITLE_INSET), modifier = Modifier.align(Alignment.BottomStart).padding(TITLE_INSET),
) )