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)
ExoPlayer { player ->
ScaledContent(if (leanBackEnabled) 0.65f else 1f) {
ScaledContent(if (leanBackEnabled) 0.6f else 1f) {
CustomVideoControls(player)
}
}

View file

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

View file

@ -440,7 +440,7 @@ fun PlaybackButtons(
) {
Icon(
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",
)
}
@ -567,7 +567,7 @@ private fun CurrentTime() {
) { time ->
Text(
text = time,
style = MaterialTheme.typography.titleMedium,
style = MaterialTheme.typography.titleLarge,
color = Color.White
)
}