From eb6d2106e04cf5c531d873e3f1d5949ce2ba7740 Mon Sep 17 00:00:00 2001 From: MaryamShaghaghi <122574719+MaryamShaghaghi@users.noreply.github.com> Date: Fri, 1 Dec 2023 09:00:52 +0100 Subject: [PATCH] Aligned the text message in Loading Screen when having large fonts --- .../net/mullvad/mullvadvpn/compose/screen/LoadingScreen.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/LoadingScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/LoadingScreen.kt index d27b4196aa21..88e8a70f9653 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/LoadingScreen.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/LoadingScreen.kt @@ -17,12 +17,14 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.compositeOver import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import net.mullvad.mullvadvpn.R import net.mullvad.mullvadvpn.compose.component.ScaffoldWithTopBar import net.mullvad.mullvadvpn.lib.theme.AppTheme +import net.mullvad.mullvadvpn.lib.theme.Dimens import net.mullvad.mullvadvpn.lib.theme.color.AlphaDescription @Preview @@ -73,7 +75,10 @@ fun LoadingScreen(onSettingsCogClicked: () -> Unit = {}) { MaterialTheme.colorScheme.onPrimary .copy(alpha = AlphaDescription) .compositeOver(backgroundColor), - modifier = Modifier.padding(top = 12.dp) + modifier = + Modifier.padding(top = 12.dp) + .padding(horizontal = Dimens.verticalDividerPadding), + textAlign = TextAlign.Center ) } }