mirror of
https://github.com/FluxaMedia/fluxa.git
synced 2026-07-26 20:02:14 +00:00
Restyle sidebar track rows with rounded selection highlight
Rows in the player sheets were flat full-bleed text with a 4dp inset; the only selection cue was the trailing check. Rows are now rounded 12dp containers with a subtle white highlight behind the selected one, matching ripple bounds, and the header subtitle is slightly larger.
This commit is contained in:
parent
7f93efbd41
commit
481aeb63e8
1 changed files with 6 additions and 4 deletions
|
|
@ -210,9 +210,9 @@ fun PlayerSidebarShell(
|
|||
Spacer(Modifier.height(6.dp))
|
||||
Text(
|
||||
text = subtitle,
|
||||
color = Color.White.copy(alpha = 0.55f),
|
||||
fontSize = if (deviceType == DeviceType.TV) 11.sp else 10.sp,
|
||||
lineHeight = 14.sp
|
||||
color = Color.White.copy(alpha = 0.5f),
|
||||
fontSize = if (deviceType == DeviceType.TV) 12.sp else 11.sp,
|
||||
lineHeight = 15.sp
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -257,8 +257,10 @@ fun TrackItem(
|
|||
modifier = modifier
|
||||
.fillMaxWidth()
|
||||
.heightIn(min = if (resolvedDeviceType == DeviceType.TV) 56.dp else 52.dp)
|
||||
.clip(RoundedCornerShape(12.dp))
|
||||
.background(if (isSelected) Color.White.copy(alpha = 0.08f) else Color.Transparent)
|
||||
.clickable { onClick() }
|
||||
.padding(horizontal = 4.dp, vertical = 8.dp),
|
||||
.padding(horizontal = 12.dp, vertical = 8.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(12.dp)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue