Tweaks to Onboarding following design review.

Use constants for consistent top padding and icon sizes.
Match layout of AnalyticsPrompt on iPad to other views.
Update icon in use case selection screen to allow tinting.
This commit is contained in:
Doug
2022-03-30 18:55:22 +01:00
parent 1aac74b2cf
commit fa71682075
8 changed files with 47 additions and 24 deletions
@@ -49,9 +49,9 @@ struct OnboardingDisplayNameScreen: View {
buttons
}
.padding(.horizontal)
.padding(.top, 8)
.frame(maxWidth: OnboardingMetrics.maxContentWidth)
.padding(.horizontal)
.padding(.top, OnboardingMetrics.topPaddingToNavigationBar)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.accentColor(theme.colors.accent)
@@ -69,7 +69,7 @@ struct OnboardingDisplayNameScreen: View {
.resizable()
.renderingMode(.template)
.foregroundColor(theme.colors.accent)
.frame(width: 90, height: 90)
.frame(width: OnboardingMetrics.iconSize, height: OnboardingMetrics.iconSize)
.background(Circle().foregroundColor(.white).padding(2))
.padding(.bottom, 8)
.accessibilityHidden(true)