BlurView icon indicating copy to clipboard operation
BlurView copied to clipboard

Dark mode issue

Open SiarheiSm opened this issue 4 years ago • 3 comments

In dark mode some views blurred in original color scheme, and does not use dark colors image

SiarheiSm avatar Nov 09 '21 13:11 SiarheiSm

More details, please.

I really doubt this can happen if you configured your BlurView properly. What's your root? Does it have a background? Do you use setFrameClearDrawable?

Post screenshots of unblurred layout as well.

Dimezis avatar Nov 09 '21 14:11 Dimezis

Hi, it seems issue relates to force dark mode i've prepared small example, the code : https://drive.google.com/file/d/1T8xQpR6ZxrIR5DfvL7r4dwWbnToM_QyI/view?usp=sharing

here you can see fullscreen RecyclerView with top item blurred: image

SiarheiSm avatar Nov 10 '21 13:11 SiarheiSm

https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#force-dark

Apparently, google uses some hacks to swap the colors during drawing without actually changing the properties of the View. I can only suggest you to implement a proper dark mode without this flag.

Dimezis avatar Nov 10 '21 13:11 Dimezis