Use iconbutton for Android contact call and send message icons

This commit is contained in:
Juha Heinanen
2025-12-04 00:53:24 +02:00
parent fee72b2e3f
commit f96a600348

View File

@ -222,11 +222,10 @@ private fun Uris(
fontSize = 18.sp,
color = MaterialTheme.colorScheme.onBackground,
)
Icon(
imageVector = Icons.AutoMirrored.Filled.Chat,
contentDescription = "Send Message",
tint = MaterialTheme.colorScheme.onBackground,
modifier = Modifier.padding(end = 24.dp).clickable {
// Chat Button
IconButton(
onClick = {
val aor = viewModel.selectedAor.value
val ua = UserAgent.ofAor(aor)
if (ua == null)
@ -242,12 +241,17 @@ private fun Uris(
}
}
}
)
) {
Icon(
imageVector = Icons.Outlined.Call,
contentDescription = "Call",
tint = MaterialTheme.colorScheme.onBackground,
modifier = Modifier.clickable {
imageVector = Icons.AutoMirrored.Filled.Chat,
contentDescription = "Send Message",
tint = MaterialTheme.colorScheme.onBackground
)
}
// Call Button
IconButton(
onClick = {
val aor = viewModel.selectedAor.value
val ua = UserAgent.ofAor(aor)
if (ua == null)
@ -263,10 +267,16 @@ private fun Uris(
}
}
}
) {
Icon(
imageVector = Icons.Outlined.Call,
contentDescription = "Call",
tint = MaterialTheme.colorScheme.onBackground
)
}
}
}
}
}