summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Text.kt2
1 files changed, 2 insertions, 0 deletions
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 39e3382a09..18a88fdf79 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()) {