MarkRS
05/08/2025, 1:08 PMJonathan
05/09/2025, 12:29 AMBlendMode
?
https://developer.android.com/develop/ui/compose/graphics/images/customize#tint-imageMarkRS
05/09/2025, 8:15 AMAlex Styl
05/09/2025, 8:29 AMMarkRS
05/09/2025, 8:38 AMMarkRS
05/09/2025, 11:10 AMAlex Styl
05/09/2025, 1:08 PMAlex Styl
05/09/2025, 1:08 PMIcon
in Unstyled. It tints vectors nicely
@Composable
fun Icon(
imageVector: ImageVector,
contentDescription: String?,
modifier: Modifier = Modifier,
tint: Color = LocalContentColor.current
) {
val colorFilter = remember(tint) {
if (tint == Color.Unspecified) null else ColorFilter.tint(tint)
}
Image(imageVector, contentDescription, modifier, colorFilter = colorFilter)
}
Alex Styl
05/09/2025, 1:11 PMcurrentColor
and it will inherit it from the parent.
I think you need something similar in composeAlex Styl
05/09/2025, 1:12 PMfill = null
. get any Compose vector from https://composeicons.com and it works out of the box with Icon()
Jonathan
05/09/2025, 1:15 PMJonathan
05/09/2025, 1:16 PMSergey Y.
05/09/2025, 4:58 PMJonathan
05/09/2025, 5:02 PMMarkRS
05/10/2025, 7:08 PMSergey Y.
05/10/2025, 7:16 PMMarkRS
05/11/2025, 9:37 AM