From 5aa7a533e79a052b762ba63bca49ef95d0d31653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Wed, 4 Oct 2023 09:44:25 +0200 Subject: [PATCH] Fix text color in account view --- .../kotlin/net/mullvad/mullvadvpn/compose/component/Text.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Text.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Text.kt index 39e3382a0967..18a88fdf7910 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Text.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Text.kt @@ -1,6 +1,7 @@ package net.mullvad.mullvadvpn.compose.component import androidx.compose.material3.LocalTextStyle +import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue @@ -79,6 +80,7 @@ fun AutoResizeText( text = text, maxLines = maxLines, style = style, + color = MaterialTheme.colorScheme.onBackground, fontSize = adjustedFontSize.sp, onTextLayout = { if (it.didOverflowHeight && isReadyToDraw.not()) {