My Customer has very strict design guidelines, e.g. for alpha: Text should have no alpha.
However, I can't seem to customize MaterialDesign´s alpha in a theme like way.
Sure, I can customize each and every component, but this is tedious:
Modifier.alpha(1.0f)
Sure, I can wrap my whole app in an alpha-Provider, but most material-components overwrite it, e.g. AppBar, so this doesn't work as expected either.
// my wrapper:
CompositionLocalProvider(LocalContentAlpha provides 1.0f) { /* my ui */ }
// will be overwritten by
@Composable
private fun AppBar(...) {
Surface(...) {
CompositionLocalProvider(LocalContentAlpha provides ContentAlpha.medium) {
Row(..., content)
}
}
}
So I guess what I should be doing is providing a custom ContentAlpha, since it is used in nearly every material component, but I don't know how to. Do you?