mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
make the mini player a little taller with a bigger album art
This commit is contained in:
@@ -97,14 +97,14 @@ fun MiniPlayer(
|
|||||||
Modifier
|
Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.navigationBarsPadding()
|
.navigationBarsPadding()
|
||||||
.padding(10.dp),
|
.padding(12.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
||||||
) {
|
) {
|
||||||
CoverArt(
|
CoverArt(
|
||||||
ref = coverArt,
|
ref = coverArt,
|
||||||
name = item.title,
|
name = item.title,
|
||||||
modifier = Modifier.size(48.dp).clip(RoundedCornerShape(6.dp)),
|
modifier = Modifier.size(56.dp).clip(RoundedCornerShape(6.dp)),
|
||||||
)
|
)
|
||||||
Column(Modifier.weight(1f)) {
|
Column(Modifier.weight(1f)) {
|
||||||
Text(
|
Text(
|
||||||
@@ -128,14 +128,14 @@ fun MiniPlayer(
|
|||||||
CircularProgressIndicator(
|
CircularProgressIndicator(
|
||||||
color = MaterialTheme.colorScheme.onSurface,
|
color = MaterialTheme.colorScheme.onSurface,
|
||||||
strokeWidth = 3.dp,
|
strokeWidth = 3.dp,
|
||||||
modifier = Modifier.size(24.dp),
|
modifier = Modifier.size(28.dp),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = if (state.isPlaying) Icons.Rounded.Pause else Icons.Rounded.PlayArrow,
|
imageVector = if (state.isPlaying) Icons.Rounded.Pause else Icons.Rounded.PlayArrow,
|
||||||
contentDescription = if (state.isPlaying) "Pause" else "Play",
|
contentDescription = if (state.isPlaying) "Pause" else "Play",
|
||||||
tint = MaterialTheme.colorScheme.onSurface,
|
tint = MaterialTheme.colorScheme.onSurface,
|
||||||
modifier = Modifier.size(36.dp),
|
modifier = Modifier.size(40.dp),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -144,7 +144,7 @@ fun MiniPlayer(
|
|||||||
imageVector = Icons.Rounded.SkipNext,
|
imageVector = Icons.Rounded.SkipNext,
|
||||||
contentDescription = "Next",
|
contentDescription = "Next",
|
||||||
tint = MaterialTheme.colorScheme.onSurface,
|
tint = MaterialTheme.colorScheme.onSurface,
|
||||||
modifier = Modifier.size(36.dp),
|
modifier = Modifier.size(40.dp),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user