Use tint for icons

This commit is contained in:
Lonami Exo 2022-10-24 12:20:07 +02:00
parent 0db1599cf7
commit 5bddc74f13
1 changed files with 6 additions and 3 deletions

View File

@ -72,11 +72,13 @@ fun DialogCard(dialog: Dialog, onDialogSelected: () -> Unit) {
MessageAck.RECEIVED -> {} MessageAck.RECEIVED -> {}
MessageAck.SENT -> Icon( MessageAck.SENT -> Icon(
painterResource(R.drawable.sent), painterResource(R.drawable.sent),
stringResource(R.string.sent) stringResource(R.string.sent),
tint = MaterialTheme.colors.onSurface,
) )
MessageAck.SEEN -> Icon( MessageAck.SEEN -> Icon(
painterResource(R.drawable.seen), painterResource(R.drawable.seen),
stringResource(R.string.seen) stringResource(R.string.seen),
tint = MaterialTheme.colors.onSurface,
) )
} }
Spacer(Modifier.width(8.dp)) Spacer(Modifier.width(8.dp))
@ -93,7 +95,8 @@ fun DialogCard(dialog: Dialog, onDialogSelected: () -> Unit) {
Icon( Icon(
painterResource(R.drawable.tack), painterResource(R.drawable.tack),
stringResource(R.string.pinned), stringResource(R.string.pinned),
modifier = Modifier.align(Alignment.End) tint = MaterialTheme.colors.onSurface,
modifier = Modifier.align(Alignment.End),
) )
} }
} }