nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

[Bug]: Text inside NiaBackground has wrong colors in some cases

Open JoseAlcerreca opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is there a StackOverflow question about this issue?

  • [X] I have searched StackOverflow

What happened?

As seen in https://github.com/android/nowinandroid/issues/917, some NiaBackground screenshots don't show any text or they show it with very low contrast.

Chatted with @alexvanyo about this:

I wonder if we need to manually set the contentColor in the Surface - I think the default behavior is it tries to determine it from the background color, but maybe it doesn't work with our custom ones?

image

Relevant logcat output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

JoseAlcerreca avatar Sep 01 '23 09:09 JoseAlcerreca