Skip to content

Commit

Permalink
Aligned the text message in Loading Screen when having large fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
MaryamShaghaghi committed Dec 1, 2023
1 parent dce4629 commit eb6d210
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)
}
}
Expand Down

0 comments on commit eb6d210

Please sign in to comment.