Skip to content

Commit

Permalink
Align the connecting to mullvad system services text in the center
Browse files Browse the repository at this point in the history
Co-Authored-By: Boban Sijuk <[email protected]>
  • Loading branch information
MaryamShaghaghi and Boki91 committed Dec 1, 2023
1 parent 28cb9ff commit 72b402f
Showing 1 changed file with 5 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,9 @@ 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.sideMargin),
textAlign = TextAlign.Center
)
}
}
Expand Down

0 comments on commit 72b402f

Please sign in to comment.