|
|
|
|
@ -87,6 +87,7 @@ fun TailnetLockSetupView(
|
|
|
|
|
subtitle = stringResource(R.string.tailnet_lock_key_explainer))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
|
@ -97,14 +98,13 @@ private fun ExplainerView() {
|
|
|
|
|
ClickableText(
|
|
|
|
|
explainerText(),
|
|
|
|
|
onClick = { handler.openUri(Links.TAILNET_LOCK_KB_URL) },
|
|
|
|
|
style = MaterialTheme.typography.bodyMedium
|
|
|
|
|
)
|
|
|
|
|
style = MaterialTheme.typography.bodyMedium)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
|
fun explainerText(): AnnotatedString {
|
|
|
|
|
val annotatedString = buildAnnotatedString {
|
|
|
|
|
return buildAnnotatedString {
|
|
|
|
|
withStyle(SpanStyle(color = MaterialTheme.colorScheme.defaultTextColor)) {
|
|
|
|
|
append(stringResource(id = R.string.tailnet_lock_explainer))
|
|
|
|
|
}
|
|
|
|
|
@ -112,16 +112,14 @@ fun explainerText(): AnnotatedString {
|
|
|
|
|
pushStringAnnotation(tag = "tailnetLockSupportURL", annotation = Links.TAILNET_LOCK_KB_URL)
|
|
|
|
|
|
|
|
|
|
withStyle(
|
|
|
|
|
style = SpanStyle(
|
|
|
|
|
style =
|
|
|
|
|
SpanStyle(
|
|
|
|
|
color = MaterialTheme.colorScheme.link,
|
|
|
|
|
textDecoration = TextDecoration.Underline
|
|
|
|
|
)
|
|
|
|
|
) {
|
|
|
|
|
textDecoration = TextDecoration.Underline)) {
|
|
|
|
|
append(stringResource(id = R.string.learn_more))
|
|
|
|
|
}
|
|
|
|
|
pop()
|
|
|
|
|
}
|
|
|
|
|
return annotatedString
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
|
|