From c77c131a097c7f8ea5b72befeb2c644e5eb7c6f9 Mon Sep 17 00:00:00 2001 From: nk Date: Thu, 4 Jun 2026 12:44:44 +0300 Subject: [PATCH] =?UTF-8?q?fix(player):=20=D0=BA=D1=80=D1=83=D0=BF=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=B2=D0=B8=D0=B4=D0=B8=D0=BC=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20=C2=AB=D0=A2=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D1=82=20=D0=BF=D0=B5=D1=81=D0=BD=D0=B8=C2=BB=20(=D0=BF?= =?UTF-8?q?=D0=B8=D0=BB=D1=8E=D0=BB=D1=8F=20=D1=81=20=D1=84=D0=BE=D0=BD?= =?UTF-8?q?=D0=BE=D0=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit На реальном телефоне мелкий TextButton (13sp + иконка 16dp в приглушённом акценте) почти не виден. Заменён на пилюлю с фоном surface2: иконка 20dp, текст 15sp medium — читается на физическом экране. Co-Authored-By: Claude Opus 4.8 --- .../radiola/ui/player/PlayerBottomSheet.kt | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/radiola/ui/player/PlayerBottomSheet.kt b/app/src/main/java/com/radiola/ui/player/PlayerBottomSheet.kt index 5a6b2f1..1504580 100644 --- a/app/src/main/java/com/radiola/ui/player/PlayerBottomSheet.kt +++ b/app/src/main/java/com/radiola/ui/player/PlayerBottomSheet.kt @@ -304,23 +304,34 @@ fun PlayerBottomSheet( Spacer(Modifier.height(12.dp)) } - // Кнопка «Текст песни» — активна только когда играет трек + // Кнопка «Текст песни» — активна только когда играет трек. + // Явная пилюля с фоном: на реальном телефоне мелкий TextButton почти не виден. if (track != null) { - TextButton( - onClick = { showLyrics = true }, - modifier = Modifier.align(Alignment.CenterHorizontally) + val lyricsInteraction = remember { MutableInteractionSource() } + Row( + 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( imageVector = Lucide.FileText, contentDescription = null, tint = colors.accent, - modifier = Modifier.size(16.dp) + modifier = Modifier.size(20.dp) ) - Spacer(Modifier.width(6.dp)) Text( text = "Текст песни", color = colors.accent, - style = MaterialTheme.typography.labelLarge + fontSize = 15.sp, + fontWeight = FontWeight.Medium ) } }