diff options
| author | 2025-01-29 02:57:49 +0000 | |
|---|---|---|
| committer | 2025-01-31 10:44:23 -0800 | |
| commit | 2285dd5a228211eb371d0ee19d1ada93deaefdf2 (patch) | |
| tree | 48f9866425f159f04c02a3a0f9d6eff5d62a1014 /libs/androidfw/StringPool.cpp | |
| parent | 0af50eb34063f95c8d820da0739aab1b03644935 (diff) | |
fix(high contrast text): Fix the color calculation used in high contrast text
- Treats more near-gray text as grayscale, which more-aggressively
pushes text to pure white or black.
- Text treated as colorful will now never worsen the contrast by
lightening already-dark or darkening already-light colors.
Also adds unit tests for this calculation.
NO_IFTTT=refactoring
Bug: 384793956
Flag: com.android.graphics.hwui.flags.high_contrast_text_inner_text_color
Test: See screenshot in b/384793956 comment24
Test: atest DrawTextFunctorTest
Change-Id: I9efa13f1741ac45e095e990952a45fdeaa9dce30
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions