|
|
|
@ -167,7 +167,7 @@ fun MainView(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
headlineContent = {
|
|
|
|
headlineContent = {
|
|
|
|
user?.NetworkProfile?.DomainName?.let { domain ->
|
|
|
|
user?.NetworkProfile?.tailnetNameForDisplay()?.let { domain ->
|
|
|
|
AutoResizingText(
|
|
|
|
AutoResizingText(
|
|
|
|
text = domain,
|
|
|
|
text = domain,
|
|
|
|
style = MaterialTheme.typography.titleMedium.short,
|
|
|
|
style = MaterialTheme.typography.titleMedium.short,
|
|
|
|
@ -500,7 +500,7 @@ fun ConnectView(
|
|
|
|
fontWeight = FontWeight.SemiBold,
|
|
|
|
fontWeight = FontWeight.SemiBold,
|
|
|
|
textAlign = TextAlign.Center,
|
|
|
|
textAlign = TextAlign.Center,
|
|
|
|
fontFamily = MaterialTheme.typography.titleMedium.fontFamily)
|
|
|
|
fontFamily = MaterialTheme.typography.titleMedium.fontFamily)
|
|
|
|
val tailnetName = user.NetworkProfile?.DomainName ?: ""
|
|
|
|
val tailnetName = user.NetworkProfile?.tailnetNameForDisplay() ?: ""
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
buildAnnotatedString {
|
|
|
|
buildAnnotatedString {
|
|
|
|
append(stringResource(id = R.string.connect_to_tailnet_prefix))
|
|
|
|
append(stringResource(id = R.string.connect_to_tailnet_prefix))
|
|
|
|
|