Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2285dd5a authored by Daniel Norman's avatar Daniel Norman
Browse files

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
parent 0af50eb3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment