Kirill Grouchnikov
12/03/2020, 11:08 PMButton composable that uses enabled to configure the surface and content color. Is AmbientContentColor then used at the icon level to tint the child icon in the disabled state? What if the icon is not created from one of the material icons, but rather a "simple" bitmap? What would be the recommended way to propagate the disabled state to it so that it can draw itself at, say, 50% alpha?Louis Pullen-Freilich [G]
12/03/2020, 11:30 PMButton, so if you want to do something custom like that you should just explicitly pass it through to the Button and the bitmap inside - content color doesn't respresent states, but just the preferred content color inside a component at a given point in timeallan.conda
12/04/2020, 4:15 AMallan.conda
12/04/2020, 4:16 AMdisabledContentColor: Color = MaterialTheme.colors.onSurface
.copy(alpha = ContentAlpha.disabled)