Fixes color of the NIP05 address in the profile
This commit is contained in:
@@ -200,7 +200,7 @@ fun DisplayNip05ProfileStatus(user: User) {
|
|||||||
if (user != "_") {
|
if (user != "_") {
|
||||||
Text(
|
Text(
|
||||||
text = remember { AnnotatedString(user + "@") },
|
text = remember { AnnotatedString(user + "@") },
|
||||||
color = MaterialTheme.colors.nip05,
|
color = MaterialTheme.colors.primary,
|
||||||
modifier = Modifier.padding(top = 1.dp, bottom = 1.dp, start = 5.dp),
|
modifier = Modifier.padding(top = 1.dp, bottom = 1.dp, start = 5.dp),
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
@@ -211,7 +211,7 @@ fun DisplayNip05ProfileStatus(user: User) {
|
|||||||
ClickableText(
|
ClickableText(
|
||||||
text = AnnotatedString(domain),
|
text = AnnotatedString(domain),
|
||||||
onClick = { nip05.let { runCatching { uri.openUri("https://${it.split("@")[1]}") } } },
|
onClick = { nip05.let { runCatching { uri.openUri("https://${it.split("@")[1]}") } } },
|
||||||
style = LocalTextStyle.current.copy(color = MaterialTheme.colors.nip05),
|
style = LocalTextStyle.current.copy(color = MaterialTheme.colors.primary),
|
||||||
modifier = Modifier.padding(top = 1.dp, bottom = 1.dp, start = domainPadStart),
|
modifier = Modifier.padding(top = 1.dp, bottom = 1.dp, start = domainPadStart),
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
|
|||||||
Reference in New Issue
Block a user