fix(player): крупная видимая кнопка «Текст песни» (пилюля с фоном)
На реальном телефоне мелкий TextButton (13sp + иконка 16dp в приглушённом акценте) почти не виден. Заменён на пилюлю с фоном surface2: иконка 20dp, текст 15sp medium — читается на физическом экране. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -304,23 +304,34 @@ fun PlayerBottomSheet(
|
|||||||
Spacer(Modifier.height(12.dp))
|
Spacer(Modifier.height(12.dp))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Кнопка «Текст песни» — активна только когда играет трек
|
// Кнопка «Текст песни» — активна только когда играет трек.
|
||||||
|
// Явная пилюля с фоном: на реальном телефоне мелкий TextButton почти не виден.
|
||||||
if (track != null) {
|
if (track != null) {
|
||||||
TextButton(
|
val lyricsInteraction = remember { MutableInteractionSource() }
|
||||||
onClick = { showLyrics = true },
|
Row(
|
||||||
modifier = Modifier.align(Alignment.CenterHorizontally)
|
modifier = Modifier
|
||||||
|
.align(Alignment.CenterHorizontally)
|
||||||
|
.clip(RoundedCornerShape(50))
|
||||||
|
.background(colors.surface2)
|
||||||
|
.pressScale(interactionSource = lyricsInteraction)
|
||||||
|
.clickable(interactionSource = lyricsInteraction, indication = null) {
|
||||||
|
showLyrics = true
|
||||||
|
}
|
||||||
|
.padding(horizontal = 18.dp, vertical = 10.dp),
|
||||||
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
|
horizontalArrangement = Arrangement.spacedBy(8.dp)
|
||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Lucide.FileText,
|
imageVector = Lucide.FileText,
|
||||||
contentDescription = null,
|
contentDescription = null,
|
||||||
tint = colors.accent,
|
tint = colors.accent,
|
||||||
modifier = Modifier.size(16.dp)
|
modifier = Modifier.size(20.dp)
|
||||||
)
|
)
|
||||||
Spacer(Modifier.width(6.dp))
|
|
||||||
Text(
|
Text(
|
||||||
text = "Текст песни",
|
text = "Текст песни",
|
||||||
color = colors.accent,
|
color = colors.accent,
|
||||||
style = MaterialTheme.typography.labelLarge
|
fontSize = 15.sp,
|
||||||
|
fontWeight = FontWeight.Medium
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user