Remove close button from Now Playing sheet
The sheet is dismissed by swiping down, tapping outside it or pressing Back, so the explicit close button and its now-unused ic_close icon are dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015g6ECVSKcBG8CJPrqC3G5o
This commit is contained in:
@@ -169,41 +169,17 @@ fun NowPlayingSheet(
|
|||||||
.background(LocalGeoColors.current.outlineVariant)
|
.background(LocalGeoColors.current.outlineVariant)
|
||||||
)
|
)
|
||||||
|
|
||||||
Row(
|
// The sheet closes by swiping down, tapping outside it or pressing Back.
|
||||||
modifier = Modifier
|
Text(
|
||||||
.fillMaxWidth()
|
text = stringResource(R.string.now_playing_label),
|
||||||
.padding(horizontal = 24.dp, vertical = 10.dp),
|
style = MaterialTheme.typography.labelSmall.copy(
|
||||||
horizontalArrangement = Arrangement.SpaceBetween,
|
fontWeight = FontWeight.Bold,
|
||||||
verticalAlignment = Alignment.CenterVertically
|
fontSize = 11.5.sp,
|
||||||
) {
|
letterSpacing = 1.2.sp,
|
||||||
Text(
|
color = LocalGeoColors.current.primary
|
||||||
text = stringResource(R.string.now_playing_label),
|
),
|
||||||
style = MaterialTheme.typography.labelSmall.copy(
|
modifier = Modifier.padding(horizontal = 24.dp, vertical = 12.dp)
|
||||||
fontWeight = FontWeight.Bold,
|
)
|
||||||
fontSize = 11.5.sp,
|
|
||||||
letterSpacing = 1.2.sp,
|
|
||||||
color = LocalGeoColors.current.primary
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
Box(
|
|
||||||
modifier = Modifier
|
|
||||||
.size(36.dp)
|
|
||||||
.clip(CircleShape)
|
|
||||||
.background(LocalGeoColors.current.surfaceContainer)
|
|
||||||
.border(1.dp, LocalGeoColors.current.outlineVariant, CircleShape)
|
|
||||||
.clickable { onClose() }
|
|
||||||
.testTag("np_close_btn"),
|
|
||||||
contentAlignment = Alignment.Center
|
|
||||||
) {
|
|
||||||
AppIcon(
|
|
||||||
resId = R.drawable.ic_close,
|
|
||||||
contentDescription = stringResource(R.string.close_content_desc),
|
|
||||||
tint = LocalGeoColors.current.deepPurple,
|
|
||||||
size = 18.dp
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.9 KiB |
Reference in New Issue
Block a user