mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
widen the play and shuffle pills and inset the download and more buttons
This commit is contained in:
@@ -255,7 +255,7 @@ fun HeroHeader(
|
|||||||
modifier = controlsModifier.fillMaxWidth(),
|
modifier = controlsModifier.fillMaxWidth(),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
IconButton(onClick = onDownload) {
|
IconButton(onClick = onDownload, modifier = Modifier.padding(horizontal = 8.dp)) {
|
||||||
Icon(Icons.Rounded.Download, contentDescription = "Download")
|
Icon(Icons.Rounded.Download, contentDescription = "Download")
|
||||||
}
|
}
|
||||||
Row(
|
Row(
|
||||||
@@ -266,19 +266,19 @@ fun HeroHeader(
|
|||||||
FilledIconButton(
|
FilledIconButton(
|
||||||
onClick = onPlay,
|
onClick = onPlay,
|
||||||
enabled = hasSongs,
|
enabled = hasSongs,
|
||||||
modifier = Modifier.width(64.dp).height(48.dp),
|
modifier = Modifier.width(76.dp).height(48.dp),
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Rounded.PlayArrow, contentDescription = "Play")
|
Icon(Icons.Rounded.PlayArrow, contentDescription = "Play")
|
||||||
}
|
}
|
||||||
FilledIconButton(
|
FilledIconButton(
|
||||||
onClick = onShuffle,
|
onClick = onShuffle,
|
||||||
enabled = hasSongs,
|
enabled = hasSongs,
|
||||||
modifier = Modifier.width(64.dp).height(48.dp),
|
modifier = Modifier.width(76.dp).height(48.dp),
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Rounded.Shuffle, contentDescription = "Shuffle play")
|
Icon(Icons.Rounded.Shuffle, contentDescription = "Shuffle play")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IconButton(onClick = onMore) {
|
IconButton(onClick = onMore, modifier = Modifier.padding(horizontal = 8.dp)) {
|
||||||
Icon(Icons.Rounded.MoreHoriz, contentDescription = "More options")
|
Icon(Icons.Rounded.MoreHoriz, contentDescription = "More options")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user