Hey all, I am trying to do this dark transparent l...
# compose
b
Hey all, I am trying to do this dark transparent look. I was using alpha but it was hiding the background image and turning the text color from white to a lighter grey. Any help please
k
Looks like something like Modifier.background(Color.Black.withAlpha(0.25f)) on the parent, and then the regular content stays unchanged (texts, icons, etc)
👍 1
b
ty
Am I still missing something?
k
Oh right, I was thinking about my own extension. Use either
Color.Black.copy(alpha = 0.25f)
or just
Color(0x40000000)
and tweak the alpha
b
thanks Krill