Only showing the paid relay icon when the relay is paid.

pull/469/head
Vitor Pamplona 2023-06-23 18:09:03 -04:00
rodzic aa931a4cc5
commit f8acb26763
1 zmienionych plików z 12 dodań i 15 usunięć

Wyświetl plik

@ -282,22 +282,19 @@ fun ServerConfig(
Column(Modifier.weight(1f)) {
Row(verticalAlignment = Alignment.CenterVertically) {
Icon(
imageVector = Icons.Default.Paid,
null,
modifier = Modifier
.padding(end = 5.dp)
.size(15.dp),
tint = if (item.paidRelay) {
Color.Green
} else {
MaterialTheme.colors.onSurface.copy(
alpha = 0.32f
)
}
)
if (item.paidRelay) {
Icon(
imageVector = Icons.Default.Paid,
null,
modifier = Modifier
.padding(end = 5.dp)
.size(14.dp),
tint = Color.Green
)
}
Text(
text = item.url.removePrefix("wss://"),
text = item.url.removePrefix("wss://").removeSuffix("/"),
modifier = Modifier
.weight(1f)
.clickable {