Thread
#compose
    adjpd

    adjpd

    1 year ago
    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)
    Text(
      "this is not shown",
      color = MaterialTheme.colors.onSurface,
    )
    Text(
      "but this is shown,
      color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f),
    )
    s

    SaurabhS

    1 year ago
    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.
    adjpd

    adjpd

    1 year ago
    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