summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Evan Laird <evanlaird@google.com> 2023-10-04 17:17:59 -0400
committer Evan Laird <evanlaird@google.com> 2023-10-13 15:18:44 -0400
commit3594391519b0ab786da2e9de63c6c1c1d36b9558 (patch)
tree04a497e18dc47d8a163a6d2a1d3680be7f63732d /libs/androidfw/misc.cpp
parent502ec03596425a9e2da4dc767f880683d6c3b627 (diff)
[Sb] Add background and foreground support to icon tints
This CL adds the possibility to tint a status bar icon with both a background and foreground color. It does this by making the following changes: 1. Add support for tint and foregroundColor in TintedIconManager 2. Define contrasting colors for DarkIconDispatcher, and add a new callback that exposes them 3. Support a new interface method (with a default impl) on StatusIconDisplayable that can accept the foreground tint As of now, there are no clients of this new tint color. Follow-up CLs will implement usage on ModernStatusBarMobileView. Test: compile Test: visually inspect that icons are the same color Test: check dumpsys for information from DarkIconDispatcher Bug: 270385675 Change-Id: I3280ba7839d7b351ea97e0cb42e2450c0b4b935b
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions