diff options
| author | 2025-02-26 17:45:26 -0800 | |
|---|---|---|
| committer | 2025-02-26 17:45:26 -0800 | |
| commit | fc89f1c79787b3c0bfa17e9bede6ae035862804e (patch) | |
| tree | a170c7574e47fe30ebf126ee8c596116da4da6ab /ravenwood/scripts/extract-last-soong-commands.py | |
| parent | 85ca0f4c687a860d46bfd3300a04252410ffc094 (diff) | |
feat(force invert): force invert the entire light-themed app
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
Diffstat (limited to 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions