-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ANDROID-14416 Allow tint for RowItem icons #334
Conversation
@@ -88,7 +92,8 @@ sealed class ListRowIcon(val contentDescription: String?) { | |||
Icon( | |||
painter = painter, | |||
modifier = Modifier.size(24.dp), | |||
contentDescription = contentDescription | |||
contentDescription = contentDescription, | |||
tint = tint ?: LocalContentColor.current.copy(alpha = LocalContentAlpha.current) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📱 New catalog for testing generated: Download |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
library/src/main/java/com/telefonica/mistica/compose/list/ListRowIcon.kt
Outdated
Show resolved
Hide resolved
📱 New catalog for testing generated: Download |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice !
🥅 What's the goal?
Currently the ListRowItem component in Mistica only admits a "ListRowIcon" param where we can only define a painterResource. This limitation causes that Icon types are tinted with default color (Black) instead of its original color.
We need to add a new optional param to allow original tint (tint= Color.Unspecified) or a custom tint color.
🚧 How do we do it?
☑️ Checks
🧪 How can I test this?