mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +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 =
|
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),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user