summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJeff DeCew <jeffdq@google.com>2021-07-28 15:30:40 -0400
committerJeff DeCew <jeffdq@google.com>2021-07-29 11:16:52 -0400
commit5dae211842a3c40da922e93728a384e74bd6acaa (patch)
tree349d620f505f0a01df6a2c631b409b54f5ceee71 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent842ebcdb4470d6aff8843ae7f3bc30516e44c3ae (diff)
Fix bug removing semantic colors of CallStyle notification actions.
* When we changed the default color of emphasized actions to an accent color instead of the notification background color, I didn't split the two into different locals, and this meant the accent color was used to enforce the color contrast of the custom color. This led to color desaturation in an attempt to meet contrast (when in dark mode) and a failure to ensure sufficient contrast (in light mode). * A piece of this that applies specifically to colorized notifications is that we used the 'night mode' state as a shortcut for whether the background was light or dark. This led to 1) different foreground colors for the same background color, depending on dark mode state, and 2) frequently a failure to meet contrast (and/or extreme desaturation) in one of those modes. * Also adding different night-mode colors for CallStyle actions, to meet spec. Test: validated sufficient contrast of default and various colorized background/button combos using the accessibility scanner. Bug: 194935539 Change-Id: I3a69eadc89f1d9d98a816c44a36873c7615a177e
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions