Tweak onboarding for small screens

This commit is contained in:
Wolf Montwé 2023-04-26 10:34:23 +02:00
parent 25c529981e
commit 0d57250352
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72
2 changed files with 7 additions and 7 deletions

View file

@ -46,13 +46,13 @@ internal fun OnboardingContent(
onImportClick = onImportClick,
)
},
verticalArrangement = Arrangement.spacedBy(MainTheme.sizes.medium, Alignment.CenterVertically),
verticalArrangement = Arrangement.SpaceEvenly,
) {
item {
WelcomeLogo(
modifier = Modifier
.defaultItemModifier()
.padding(top = MainTheme.spacings.quadruple),
.padding(top = MainTheme.spacings.double),
)
}
item {
@ -122,8 +122,8 @@ private fun WelcomeFooter(
modifier: Modifier = Modifier,
) {
Column(
modifier = modifier,
verticalArrangement = Arrangement.spacedBy(MainTheme.spacings.default),
modifier = modifier.padding(bottom = MainTheme.spacings.double),
verticalArrangement = Arrangement.spacedBy(MainTheme.spacings.quarter),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Button(
@ -139,7 +139,7 @@ private fun WelcomeFooter(
private fun Modifier.defaultItemModifier() = composed {
fillMaxWidth()
.padding(MainTheme.spacings.double)
.padding(MainTheme.spacings.default)
}
@Composable

View file

@ -2,8 +2,8 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
xmlns:tools="http://schemas.android.com/tools"
android:width="330dp"
android:height="330dp"
android:width="300dp"
android:height="300dp"
android:viewportWidth="330"
android:viewportHeight="330"
tools:ignore="VectorRaster">