fix(android): full-height song context sheet + styled playlist-picker input
- Song context sheet now opens fully expanded (skipPartiallyExpanded) so the "Herunterladen" option at the bottom is reachable without an extra drag-up. - The "new playlist" field in the playlist picker now matches the app's search bars: rounded 12dp, filled surface, leading icon, NsAccent/NsOnSurface3 borders. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
17a28b3011
commit
abb4047966
2 files changed
+10
-2
No files matched your search
@@ -7,6 +7,7 @@ import androidx.compose.foundation.lazy.LazyColumn
|
|||||||
import androidx.compose.foundation.lazy.items
|
import androidx.compose.foundation.lazy.items
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
|
import androidx.compose.material.icons.automirrored.filled.PlaylistAdd
|
||||||
import androidx.compose.material.icons.automirrored.filled.QueueMusic
|
import androidx.compose.material.icons.automirrored.filled.QueueMusic
|
||||||
import androidx.compose.material.icons.filled.Add
|
import androidx.compose.material.icons.filled.Add
|
||||||
import androidx.compose.material3.*
|
import androidx.compose.material3.*
|
||||||
@@ -71,15 +72,19 @@ fun PlaylistPickerSheet(
|
|||||||
OutlinedTextField(
|
OutlinedTextField(
|
||||||
value = newName,
|
value = newName,
|
||||||
onValueChange = { newName = it },
|
onValueChange = { newName = it },
|
||||||
placeholder = { Text("Neue Playlist…", fontSize = 14.sp) },
|
placeholder = { Text("Neue Playlist…", color = NsOnSurface2, fontSize = 14.sp) },
|
||||||
|
leadingIcon = { Icon(Icons.AutoMirrored.Filled.PlaylistAdd, null, tint = NsOnSurface2) },
|
||||||
singleLine = true,
|
singleLine = true,
|
||||||
|
shape = RoundedCornerShape(12.dp),
|
||||||
modifier = Modifier.weight(1f),
|
modifier = Modifier.weight(1f),
|
||||||
colors = OutlinedTextFieldDefaults.colors(
|
colors = OutlinedTextFieldDefaults.colors(
|
||||||
focusedBorderColor = NsAccent,
|
focusedBorderColor = NsAccent,
|
||||||
unfocusedBorderColor = NsBorder,
|
unfocusedBorderColor = NsOnSurface3,
|
||||||
cursorColor = NsAccent,
|
cursorColor = NsAccent,
|
||||||
focusedTextColor = NsOnSurface,
|
focusedTextColor = NsOnSurface,
|
||||||
unfocusedTextColor = NsOnSurface,
|
unfocusedTextColor = NsOnSurface,
|
||||||
|
focusedContainerColor = NsSurface2,
|
||||||
|
unfocusedContainerColor = NsSurface2,
|
||||||
),
|
),
|
||||||
textStyle = androidx.compose.ui.text.TextStyle(
|
textStyle = androidx.compose.ui.text.TextStyle(
|
||||||
fontFamily = Outfit, fontSize = 14.sp,
|
fontFamily = Outfit, fontSize = 14.sp,
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ fun SongContextSheet(
|
|||||||
) {
|
) {
|
||||||
ModalBottomSheet(
|
ModalBottomSheet(
|
||||||
onDismissRequest = onDismiss,
|
onDismissRequest = onDismiss,
|
||||||
|
// Open fully expanded so all options (incl. "Herunterladen" at the bottom) are reachable
|
||||||
|
// right away — no extra drag-up needed.
|
||||||
|
sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true),
|
||||||
containerColor = NsSurface,
|
containerColor = NsSurface,
|
||||||
dragHandle = { BottomSheetDefaults.DragHandle(color = NsOnSurface2) },
|
dragHandle = { BottomSheetDefaults.DragHandle(color = NsOnSurface2) },
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in new issue
Block a user