Onboarding iteration #1776
This commit is contained in:
parent
68cedbf8ff
commit
bfe484b63c
2 changed files with 4 additions and 14 deletions
|
|
@ -45,6 +45,7 @@ import io.element.android.libraries.designsystem.preview.PreviewsDayNight
|
||||||
import io.element.android.libraries.designsystem.preview.ElementPreview
|
import io.element.android.libraries.designsystem.preview.ElementPreview
|
||||||
import io.element.android.libraries.designsystem.theme.components.Button
|
import io.element.android.libraries.designsystem.theme.components.Button
|
||||||
import io.element.android.libraries.designsystem.theme.components.Text
|
import io.element.android.libraries.designsystem.theme.components.Text
|
||||||
|
import io.element.android.libraries.designsystem.utils.CommonDrawables
|
||||||
import io.element.android.libraries.testtags.TestTags
|
import io.element.android.libraries.testtags.TestTags
|
||||||
import io.element.android.libraries.testtags.testTag
|
import io.element.android.libraries.testtags.testTag
|
||||||
import io.element.android.libraries.theme.ElementTheme
|
import io.element.android.libraries.theme.ElementTheme
|
||||||
|
|
@ -79,14 +80,7 @@ fun WelcomeView(
|
||||||
color = ElementTheme.colors.textPrimary,
|
color = ElementTheme.colors.textPrimary,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.height(8.dp))
|
Spacer(modifier = Modifier.height(80.dp))
|
||||||
Text(
|
|
||||||
text = stringResource(R.string.screen_welcome_subtitle),
|
|
||||||
style = ElementTheme.typography.fontBodyMdRegular,
|
|
||||||
color = ElementTheme.colors.textPrimary,
|
|
||||||
textAlign = TextAlign.Center,
|
|
||||||
)
|
|
||||||
Spacer(modifier = Modifier.height(40.dp))
|
|
||||||
InfoListOrganism(
|
InfoListOrganism(
|
||||||
items = listItems(),
|
items = listItems(),
|
||||||
textStyle = ElementTheme.typography.fontBodyMdMedium,
|
textStyle = ElementTheme.typography.fontBodyMdMedium,
|
||||||
|
|
@ -109,17 +103,13 @@ fun WelcomeView(
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun listItems() = persistentListOf(
|
private fun listItems() = persistentListOf(
|
||||||
InfoListItem(
|
|
||||||
message = stringResource(R.string.screen_welcome_bullet_1),
|
|
||||||
iconVector = Icons.Outlined.NewReleases,
|
|
||||||
),
|
|
||||||
InfoListItem(
|
InfoListItem(
|
||||||
message = stringResource(R.string.screen_welcome_bullet_2),
|
message = stringResource(R.string.screen_welcome_bullet_2),
|
||||||
iconVector = Icons.Outlined.Lock,
|
iconVector = Icons.Outlined.Lock,
|
||||||
),
|
),
|
||||||
InfoListItem(
|
InfoListItem(
|
||||||
message = stringResource(R.string.screen_welcome_bullet_3),
|
message = stringResource(R.string.screen_welcome_bullet_3),
|
||||||
iconVector = Icons.Outlined.AddComment,
|
iconId = CommonDrawables.ic_compound_chat_problem,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<string name="screen_notification_optin_subtitle">"You can change your settings later."</string>
|
<string name="screen_notification_optin_subtitle">"You can change your settings later."</string>
|
||||||
<string name="screen_notification_optin_title">"Allow notifications and never miss a message"</string>
|
<string name="screen_notification_optin_title">"Allow notifications and never miss a message"</string>
|
||||||
<string name="screen_welcome_bullet_1">"Calls, polls, search and more will be added later this year."</string>
|
<string name="screen_welcome_bullet_1">"Calls, polls, search and more will be added later this year."</string>
|
||||||
<string name="screen_welcome_bullet_2">"Message history for encrypted rooms won’t be available in this update."</string>
|
<string name="screen_welcome_bullet_2">"Message history for encrypted rooms isn’t available yet."</string>
|
||||||
<string name="screen_welcome_bullet_3">"We’d love to hear from you, let us know what you think via the settings page."</string>
|
<string name="screen_welcome_bullet_3">"We’d love to hear from you, let us know what you think via the settings page."</string>
|
||||||
<string name="screen_welcome_button">"Let\'s go!"</string>
|
<string name="screen_welcome_button">"Let\'s go!"</string>
|
||||||
<string name="screen_welcome_subtitle">"Here’s what you need to know:"</string>
|
<string name="screen_welcome_subtitle">"Here’s what you need to know:"</string>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue