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,13 +169,7 @@ fun NowPlayingSheet(
|
||||
.background(LocalGeoColors.current.outlineVariant)
|
||||
)
|
||||
|
||||
Row(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 24.dp, vertical = 10.dp),
|
||||
horizontalArrangement = Arrangement.SpaceBetween,
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
// The sheet closes by swiping down, tapping outside it or pressing Back.
|
||||
Text(
|
||||
text = stringResource(R.string.now_playing_label),
|
||||
style = MaterialTheme.typography.labelSmall.copy(
|
||||
@@ -183,27 +177,9 @@ fun NowPlayingSheet(
|
||||
fontSize = 11.5.sp,
|
||||
letterSpacing = 1.2.sp,
|
||||
color = LocalGeoColors.current.primary
|
||||
),
|
||||
modifier = Modifier.padding(horizontal = 24.dp, vertical = 12.dp)
|
||||
)
|
||||
)
|
||||
|
||||
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(
|
||||
modifier = Modifier
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.9 KiB |
Reference in New Issue
Block a user