chore: Update text styling native player

This commit is contained in:
PartyDonut 2025-10-23 15:55:26 +02:00
parent 4c530f1c36
commit 561351dd09
3 changed files with 6 additions and 6 deletions

View file

@ -52,7 +52,7 @@ fun VideoPlayerScreen(
) { ) {
val leanBackEnabled = leanBackEnabled(LocalContext.current) val leanBackEnabled = leanBackEnabled(LocalContext.current)
ExoPlayer { player -> ExoPlayer { player ->
ScaledContent(if (leanBackEnabled) 0.65f else 1f) { ScaledContent(if (leanBackEnabled) 0.6f else 1f) {
CustomVideoControls(player) CustomVideoControls(player)
} }
} }

View file

@ -138,7 +138,7 @@ internal fun ProgressBar(
if (label.isNotBlank()) { if (label.isNotBlank()) {
Text( Text(
text = label, text = label,
style = MaterialTheme.typography.titleLarge.copy( style = MaterialTheme.typography.titleMedium.copy(
color = Color.White, color = Color.White,
fontWeight = FontWeight.Bold fontWeight = FontWeight.Bold
), ),
@ -159,7 +159,7 @@ internal fun ProgressBar(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
modifier = modifier.fillMaxWidth() modifier = modifier.fillMaxWidth()
) { ) {
val timeTextStyle = MaterialTheme.typography.titleLarge.copy( val timeTextStyle = MaterialTheme.typography.titleMedium.copy(
fontWeight = FontWeight.Bold fontWeight = FontWeight.Bold
) )
@ -220,7 +220,7 @@ private fun Videolabel(value: String?) {
) { ) {
Text( Text(
value, value,
style = MaterialTheme.typography.bodySmall.copy( style = MaterialTheme.typography.titleMedium.copy(
fontWeight = FontWeight.SemiBold, fontWeight = FontWeight.SemiBold,
), ),
color = MaterialTheme.colorScheme.onSurface color = MaterialTheme.colorScheme.onSurface

View file

@ -440,7 +440,7 @@ fun PlaybackButtons(
) { ) {
Icon( Icon(
if (isPlaying) Iconsax.Filled.Pause else Iconsax.Filled.Play, if (isPlaying) Iconsax.Filled.Pause else Iconsax.Filled.Play,
modifier = Modifier.size(42.dp), modifier = Modifier.size(40.dp),
contentDescription = if (isPlaying) "Pause" else "Play", contentDescription = if (isPlaying) "Pause" else "Play",
) )
} }
@ -567,7 +567,7 @@ private fun CurrentTime() {
) { time -> ) { time ->
Text( Text(
text = time, text = time,
style = MaterialTheme.typography.titleMedium, style = MaterialTheme.typography.titleLarge,
color = Color.White color = Color.White
) )
} }