Fix #125
This commit is contained in:
@@ -50,6 +50,7 @@ fun PlaylistPreviewItem(
|
|||||||
|
|
||||||
PlaylistItem(
|
PlaylistItem(
|
||||||
name = playlistPreview.playlist.name,
|
name = playlistPreview.playlist.name,
|
||||||
|
textColor = Color.White,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
thumbnailSize = thumbnailSize,
|
thumbnailSize = thumbnailSize,
|
||||||
imageContent = {
|
imageContent = {
|
||||||
@@ -117,6 +118,7 @@ fun BuiltInPlaylistItem(
|
|||||||
fun PlaylistItem(
|
fun PlaylistItem(
|
||||||
name: String,
|
name: String,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
|
textColor: Color? = null,
|
||||||
thumbnailSize: Dp = Dimensions.thumbnails.song,
|
thumbnailSize: Dp = Dimensions.thumbnails.song,
|
||||||
withGradient: Boolean = true,
|
withGradient: Boolean = true,
|
||||||
imageContent: @Composable BoxScope.() -> Unit
|
imageContent: @Composable BoxScope.() -> Unit
|
||||||
@@ -136,7 +138,7 @@ fun PlaylistItem(
|
|||||||
|
|
||||||
BasicText(
|
BasicText(
|
||||||
text = name,
|
text = name,
|
||||||
style = typography.xxs.semiBold.color(Color.White),
|
style = typography.xxs.semiBold.color(textColor ?: colorPalette.text),
|
||||||
maxLines = 2,
|
maxLines = 2,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|||||||
Reference in New Issue
Block a user