Add color to reposted name.

This commit is contained in:
Kgothatso Ngako
2026-05-02 23:28:29 +02:00
parent a265d03800
commit 7fdcb20435

View File

@@ -6,6 +6,7 @@ import ac.cord.auxiliary.compose.database.model.intermdiate.LocalNostrEvent
import ac.cord.auxiliary.compose.extensions.toFormattedTimeAndDateString import ac.cord.auxiliary.compose.extensions.toFormattedTimeAndDateString
import ac.cord.auxiliary.compose.ui.composable.widgets.content.RichContent import ac.cord.auxiliary.compose.ui.composable.widgets.content.RichContent
import ac.cord.auxiliary.compose.ui.composable.widgets.profile.ProfileAvatar import ac.cord.auxiliary.compose.ui.composable.widgets.profile.ProfileAvatar
import ac.cord.auxiliary.compose.ui.composable.widgets.profile.ProfileColor
import ac.cord.auxiliary.compose.ui.theme.AuxTheme import ac.cord.auxiliary.compose.ui.theme.AuxTheme
import androidx.compose.foundation.clickable import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Arrangement
@@ -54,8 +55,9 @@ fun LocalNostrEvent.ListView(
) { ) {
Text( Text(
modifier = Modifier.weight(1f), modifier = Modifier.weight(1f),
text = profile?.displayName ?: profile?.userName ?: nostrEvent.pubKey, text = profile?.humanReadableNameOrPubkey() ?: nostrEvent.pubKey,
style = MaterialTheme.typography.labelSmall style = MaterialTheme.typography.labelSmall,
color = ProfileColor.fromPublicKey(profile?.publicKey ?: nostrEvent.pubKey)
) )
Text( Text(
text = "reposted", text = "reposted",