+30
−14
+17
−16
+11
−2
+1
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Instead of forcing dark each rendernode individually, we force invert the entire app. This helps us avoid issues where some text or icons don't get detected as dark, and they get inverted, causing black-on- black text, etc. The lightness detection in this change uses a simple theme check that will return the wrong answer if the app theme is incorrect. This will be improved upon in future changes to check other heuristics like the main window background color, and to calculate the RenderNode color area polarity in real time. Note: this disables the old force dark behavior when the user has the new force invert dark theme toggle enabled. Bug: 372561761 Flag: android.view.accessibility.force_invert_color Test: manual only; observe inverted apps. See attachments in bug. Change-Id: I86e3e095af206368b5cd3d61330aa1d457103e7d