mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
one-line artist title, shared with the header style
This commit is contained in:
@@ -108,8 +108,9 @@ fun ArtistDetailScreen(
|
||||
}
|
||||
}
|
||||
}
|
||||
val nameTextStyle = MaterialTheme.typography.headlineLarge
|
||||
val imageNameStyle =
|
||||
MaterialTheme.typography.headlineLarge.copy(
|
||||
nameTextStyle.copy(
|
||||
shadow =
|
||||
Shadow(
|
||||
color = Color.Black.copy(alpha = 0.8f),
|
||||
@@ -118,7 +119,7 @@ fun ArtistDetailScreen(
|
||||
),
|
||||
)
|
||||
val barNameStyle =
|
||||
MaterialTheme.typography.headlineLarge.copy(
|
||||
nameTextStyle.copy(
|
||||
shadow =
|
||||
Shadow(
|
||||
color = Color.Black.copy(alpha = 0.8f * barFraction),
|
||||
@@ -147,7 +148,7 @@ fun ArtistDetailScreen(
|
||||
text = artist?.name.orEmpty(),
|
||||
style = imageNameStyle,
|
||||
color = Color.White,
|
||||
maxLines = 2,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
modifier = Modifier.align(Alignment.BottomStart).padding(TITLE_INSET),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user