-
- Downloads
[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
Showing
- packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/ShadeHeader.kt 2 additions, 1 deletion...c/com/android/systemui/shade/ui/composable/ShadeHeader.kt
- packages/SystemUI/plugin/src/com/android/systemui/plugins/DarkIconDispatcher.java 50 additions, 1 deletion.../src/com/android/systemui/plugins/DarkIconDispatcher.java
- packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt 3 additions, 2 deletions...I/src/com/android/systemui/shade/ShadeHeaderController.kt
- packages/SystemUI/src/com/android/systemui/statusbar/StatusIconDisplayable.java 15 additions, 0 deletions...com/android/systemui/statusbar/StatusIconDisplayable.java
- packages/SystemUI/src/com/android/systemui/statusbar/phone/DarkIconDispatcherImpl.java 25 additions, 1 deletion...roid/systemui/statusbar/phone/DarkIconDispatcherImpl.java
- packages/SystemUI/src/com/android/systemui/statusbar/phone/DemoStatusIcons.java 19 additions, 9 deletions...com/android/systemui/statusbar/phone/DemoStatusIcons.java
- packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java 6 additions, 2 deletions...droid/systemui/statusbar/phone/KeyguardStatusBarView.java
- packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarIconController.java 24 additions, 6 deletions...oid/systemui/statusbar/phone/StatusBarIconController.java
- packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/binder/MobileIconBinder.kt 1 addition, 1 deletion...i/statusbar/pipeline/mobile/ui/binder/MobileIconBinder.kt
- packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/binder/ModernStatusBarViewBinding.kt 2 additions, 2 deletions...r/pipeline/shared/ui/binder/ModernStatusBarViewBinding.kt
- packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/view/ModernStatusBarView.kt 13 additions, 3 deletions.../statusbar/pipeline/shared/ui/view/ModernStatusBarView.kt
- packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/binder/WifiViewBinder.kt 2 additions, 2 deletions...temui/statusbar/pipeline/wifi/ui/binder/WifiViewBinder.kt
- packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/view/ModernStatusBarMobileViewTest.kt 5 additions, 3 deletions.../pipeline/mobile/ui/view/ModernStatusBarMobileViewTest.kt
- packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/ui/view/ModernStatusBarViewTest.kt 7 additions, 3 deletions...tusbar/pipeline/shared/ui/view/ModernStatusBarViewTest.kt
- packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/view/ModernStatusBarWifiViewTest.kt 5 additions, 3 deletions...sbar/pipeline/wifi/ui/view/ModernStatusBarWifiViewTest.kt
Loading
Please register or sign in to comment