Anyone had any experience of this <https://en.miui...
# compose
a
Anyone had any experience of this https://en.miui.com/ and Compose? Specifically, when a phone is in dark mode, and the effect that has on MaterialTheme colours? This is my tester's problem on a MIUI device with Android 10. And it's doesn't consistently happen. (No other testers have this problem)
Copy code
Text(
  "this is not shown",
  color = MaterialTheme.colors.onSurface,
)
Text(
  "but this is shown,
  color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f),
)
s
The tester probably has force dark mode option enabled. It's enabled for all apps by default and seems to cause weird visibility behavior in compose apps.
a
Yeah. It's a Xiaomi phone. Do you know if the Compose people are looking into this at all?
And the solution in there, the theme.xml property preventing their dark mode thing, works