From 7016190ce58fcdab1963a15b54377ac0eb660563 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 4 Sep 2025 15:28:47 +0200 Subject: [PATCH] Use LocalContentColor.current for tag text Fixes text visibility on Android 16 QPR1. --- app/src/main/kotlin/com/hippo/ehviewer/ui/main/GalleryTag.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/main/GalleryTag.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/main/GalleryTag.kt index 9e1d3e8da..5f4bb5295 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/main/GalleryTag.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/main/GalleryTag.kt @@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.LocalContentColor import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material3.Text @@ -103,7 +104,7 @@ private fun BaseRoundText( Text( text = text, modifier = modifier.padding(horizontal = 12.dp, vertical = 4.dp).width(IntrinsicSize.Max), - color = MaterialTheme.colorScheme.onSurface.let { if (weak) it.copy(0.5F) else it }, + color = LocalContentColor.current.let { if (weak) it.copy(0.5F) else it }, style = MaterialTheme.typography.labelLarge.includeFontPadding, ) }