mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-08-18 11:03:26 +00:00
Continue implementing OnboardingActivity.
This commit is contained in:
@ -328,6 +328,9 @@ class OnboardingActivity: BaseActivity() {
|
||||
|
||||
@Composable
|
||||
fun WelcomePage(verticalPadding: Dp, windowSizeClass: WindowSizeClass) {
|
||||
val isTablet = windowSizeClass.windowWidthSizeClass == WindowWidthSizeClass.EXPANDED &&
|
||||
windowSizeClass.windowHeightSizeClass == WindowHeightSizeClass.EXPANDED
|
||||
|
||||
Column(
|
||||
modifier = Modifier.fillMaxSize().verticalScroll(rememberScrollState()),
|
||||
horizontalAlignment = Alignment.Start
|
||||
@ -351,24 +354,48 @@ class OnboardingActivity: BaseActivity() {
|
||||
|
||||
Spacer(modifier = Modifier.weight(1f))
|
||||
|
||||
SecondaryText(
|
||||
R.string.onboarding_welcome_to,
|
||||
fontSize = 22.sp
|
||||
)
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
) {
|
||||
if (isTablet) {
|
||||
Spacer(modifier = Modifier.weight(1f))
|
||||
}
|
||||
|
||||
PrimaryText(
|
||||
R.string.onboarding_infinity_for_reddit,
|
||||
fontSize = 36.sp,
|
||||
lineHeight = 36.sp,
|
||||
fontWeight = FontWeight.Bold
|
||||
)
|
||||
Column(
|
||||
horizontalAlignment = if (isTablet) Alignment.CenterHorizontally else Alignment.Start
|
||||
) {
|
||||
SecondaryText(
|
||||
R.string.onboarding_welcome_to,
|
||||
fontSize = if (isTablet) 30.sp else 22.sp
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
if (isTablet) {
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
}
|
||||
|
||||
PrimaryText(
|
||||
R.string.infinitely_better_experience,
|
||||
fontSize = LocalTypography.current.fontSize.size18
|
||||
)
|
||||
PrimaryText(
|
||||
R.string.onboarding_infinity_for_reddit,
|
||||
fontSize = if (isTablet) 48.sp else 36.sp,
|
||||
lineHeight = if (isTablet) 48.sp else 36.sp,
|
||||
fontWeight = FontWeight.Bold
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
|
||||
PrimaryText(
|
||||
R.string.infinitely_better_experience,
|
||||
fontSize = if (isTablet) 28.sp else 18.sp
|
||||
)
|
||||
}
|
||||
|
||||
if (isTablet) {
|
||||
Spacer(modifier = Modifier.weight(1f))
|
||||
}
|
||||
}
|
||||
|
||||
if (isTablet) {
|
||||
Spacer(modifier = Modifier.weight(1f))
|
||||
}
|
||||
|
||||
Spacer(modifier = Modifier.height(verticalPadding))
|
||||
}
|
||||
|
||||
@ -1701,7 +1701,7 @@
|
||||
<string name="make_it_yours_description">Customize every color, button, and gesture</string>
|
||||
<string name="content_description_make_it_yours">Screenshot of make it yours</string>
|
||||
<string name="private_browsing">Private Browsing</string>
|
||||
<string name="private_browsing_description">Browse Anonymously\nLogin Anytime</string>
|
||||
<string name="private_browsing_description">Subscribe, save, vote, and revisit, before signing in</string>
|
||||
<string name="content_description_private_browsing">Screenshot of private browsing</string>
|
||||
<string name="more_features">And There\'s More!</string>
|
||||
<string name="more_features_description">Discover even more tools and features waiting for you inside the app</string>
|
||||
|
||||
Reference in New Issue
Block a user