From fa89406944f12e948ff66930c0c327b91574c961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Fri, 27 Oct 2023 12:09:36 +0200 Subject: [PATCH] Set correct tint on device name and time left --- .../net/mullvad/mullvadvpn/compose/component/TopBar.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/TopBar.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/TopBar.kt index 64ef36bea6d0..8130e71963f6 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/TopBar.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/TopBar.kt @@ -42,6 +42,7 @@ import androidx.compose.ui.unit.dp import net.mullvad.mullvadvpn.R import net.mullvad.mullvadvpn.lib.theme.AppTheme import net.mullvad.mullvadvpn.lib.theme.Dimens +import net.mullvad.mullvadvpn.lib.theme.color.AlphaTopBar @Preview @Composable @@ -303,7 +304,8 @@ fun MullvadTopBarWithDeviceName( ?: "", maxLines = 1, overflow = TextOverflow.Ellipsis, - style = MaterialTheme.typography.bodySmall + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onBackground.copy(alpha = AlphaTopBar) ) if (daysLeftUntilExpiry != null) { Text( @@ -316,7 +318,8 @@ fun MullvadTopBarWithDeviceName( daysLeftUntilExpiry ) ), - style = MaterialTheme.typography.bodySmall + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onBackground.copy(alpha = AlphaTopBar) ) } else { Spacer(Modifier)