mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-21 15:05:19 +00:00
AccessibilityId refactor WIP
This commit is contained in:
parent
399796bac3
commit
e5fd2c8cc0
@ -72,7 +72,7 @@ internal fun StartConversationScreen(
|
|||||||
ItemButton(
|
ItemButton(
|
||||||
textId = R.string.sessionInviteAFriend,
|
textId = R.string.sessionInviteAFriend,
|
||||||
icon = R.drawable.ic_invite_friend,
|
icon = R.drawable.ic_invite_friend,
|
||||||
Modifier.contentDescription(R.string.AccessibilityId_invite_friend_button),
|
Modifier.contentDescription(R.string.AccessibilityId_sessionInviteAFriend),
|
||||||
onClick = delegate::onInviteFriend
|
onClick = delegate::onInviteFriend
|
||||||
)
|
)
|
||||||
Column(
|
Column(
|
||||||
|
@ -143,7 +143,7 @@ private fun EnterAccountId(
|
|||||||
BorderlessButtonWithIcon(
|
BorderlessButtonWithIcon(
|
||||||
text = stringResource(R.string.messageNewDescriptionMobile),
|
text = stringResource(R.string.messageNewDescriptionMobile),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.contentDescription(R.string.AccessibilityId_help_desk_link)
|
.contentDescription(R.string.AccessibilityId_messageNewDescriptionMobile)
|
||||||
.padding(horizontal = LocalDimensions.current.mediumSpacing)
|
.padding(horizontal = LocalDimensions.current.mediumSpacing)
|
||||||
.fillMaxWidth(),
|
.fillMaxWidth(),
|
||||||
style = LocalType.current.small,
|
style = LocalType.current.small,
|
||||||
|
@ -65,7 +65,7 @@ internal fun SeedReminder(startRecoveryPasswordActivity: () -> Unit) {
|
|||||||
text = stringResource(R.string.theContinue),
|
text = stringResource(R.string.theContinue),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.align(Alignment.CenterVertically)
|
.align(Alignment.CenterVertically)
|
||||||
.contentDescription(R.string.AccessibilityId_reveal_recovery_phrase_button),
|
.contentDescription(R.string.AccessibilityId_recoveryPasswordBanner),
|
||||||
onClick = startRecoveryPasswordActivity
|
onClick = startRecoveryPasswordActivity
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ private fun RecoveryPassword(state: State, onChange: (String) -> Unit = {}, onCo
|
|||||||
SessionOutlinedTextField(
|
SessionOutlinedTextField(
|
||||||
text = state.recoveryPhrase,
|
text = state.recoveryPhrase,
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
contentDescription = stringResource(R.string.AccessibilityId_recoveryPhrase),
|
contentDescription = stringResource(R.string.AccessibilityId_recoveryPasswordRestore),
|
||||||
placeholder = stringResource(R.string.recoveryPasswordEnter),
|
placeholder = stringResource(R.string.recoveryPasswordEnter),
|
||||||
onChange = onChange,
|
onChange = onChange,
|
||||||
onContinue = onContinue,
|
onContinue = onContinue,
|
||||||
|
@ -23,10 +23,10 @@
|
|||||||
<string name="AccessibilityId_urlOpenBrowser">Open URL</string>
|
<string name="AccessibilityId_urlOpenBrowser">Open URL</string>
|
||||||
<string name="AccessibilityId_onboardingTos">Terms of service button</string>
|
<string name="AccessibilityId_onboardingTos">Terms of service button</string>
|
||||||
<string name="AccessibilityId_onboardingPrivacy">Privacy policy button</string>
|
<string name="AccessibilityId_onboardingPrivacy">Privacy policy button</string>
|
||||||
<string name="AccessibilityId_recoveryPhrase">Recovery phrase input</string>
|
<string name="AccessibilityId_recoveryPasswordEnter">Recovery phrase input</string>
|
||||||
<string name="AccessibilityId_reveal_recovery_phrase_button">Reveal recovery phrase button</string>
|
<string name="AccessibilityId_recoveryPasswordBanner">Reveal recovery phrase button</string>
|
||||||
<string name="AccessibilityId_help_desk_link">Help desk link</string>
|
<string name="AccessibilityId_messageNewDescriptionMobile">Help desk link</string>
|
||||||
<string name="AccessibilityId_invite_friend_button">Invite friend button</string>
|
<string name="AccessibilityId_sessionInviteAFriend">Invite friend button</string>
|
||||||
<!-- Landing Page -->
|
<!-- Landing Page -->
|
||||||
<string name="AccessibilityId_create_session_id">Create session ID</string>
|
<string name="AccessibilityId_create_session_id">Create session ID</string>
|
||||||
<string name="AccessibilityId_link_a_device">Link a device</string>
|
<string name="AccessibilityId_link_a_device">Link a device</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user