diff options
| author | 2021-03-19 16:41:29 -0400 | |
|---|---|---|
| committer | 2021-03-24 12:33:31 -0400 | |
| commit | 36f2a1f4cd09d3bb3f4d062375efb68ed6632c8b (patch) | |
| tree | 95264a3954eb69b46e4646cca97c1ad26e94009a | |
| parent | 2181315b0a4656b55f652dd84fa8ca5c0ae0c4b1 (diff) | |
Introduce new colorful wallpaperTextColor
Use for clock and udfps icon
Test: manual
Fixes: 182799149
Change-Id: Ife6f4eb9c352bdde41570eb82e6c5f480032a214
4 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/res/values/attrs.xml b/packages/SystemUI/res/values/attrs.xml index be49e1f8c71e..886f98e55d67 100644 --- a/packages/SystemUI/res/values/attrs.xml +++ b/packages/SystemUI/res/values/attrs.xml @@ -124,6 +124,7 @@ <attr name="darkIconTheme" format="reference" /> <attr name="wallpaperTextColor" format="reference|color" /> <attr name="wallpaperTextColorSecondary" format="reference|color" /> + <attr name="wallpaperTextColorAccent" format="reference|color" /> <attr name="backgroundProtectedStyle" format="reference" /> <declare-styleable name="SmartReplyView"> diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 4a661dcecce8..ecc1a5c831b8 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -321,6 +321,7 @@ <item name="darkIconTheme">@style/DualToneDarkTheme</item> <item name="wallpaperTextColor">@*android:color/primary_text_material_dark</item> <item name="wallpaperTextColorSecondary">@*android:color/secondary_text_material_dark</item> + <item name="wallpaperTextColorAccent">@*android:color/system_accent1_100</item> <item name="android:colorError">@*android:color/error_color_material_dark</item> <item name="android:colorControlHighlight">@*android:color/primary_text_material_dark</item> <item name="*android:lockPatternStyle">@style/LockPatternStyle</item> @@ -337,6 +338,7 @@ <style name="Theme.SystemUI.Light"> <item name="wallpaperTextColor">@*android:color/primary_text_material_light</item> <item name="wallpaperTextColorSecondary">@*android:color/secondary_text_material_light</item> + <item name="wallpaperTextColorAccent">@*android:color/system_accent2_600</item> <item name="android:colorError">@*android:color/error_color_material_light</item> <item name="android:colorControlHighlight">#40000000</item> <item name="shadowRadius">0</item> diff --git a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java index 3f0e3eb84424..ab219f36bab3 100644 --- a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java +++ b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java @@ -131,7 +131,7 @@ public class AnimatableClockController extends ViewController<AnimatableClockVie private void initColors() { mLockScreenColor = Utils.getColorAttrDefaultColor(getContext(), - com.android.systemui.R.attr.wallpaperTextColor); + com.android.systemui.R.attr.wallpaperTextColorAccent); mView.setColors(mDozingColor, mLockScreenColor); mView.animateDoze(mIsDozing, false); } diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java index 378907c400d7..e2748437c0c6 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardView.java @@ -62,7 +62,8 @@ public class UdfpsKeyguardView extends UdfpsAnimationView { mBgProtection = findViewById(R.id.udfps_keyguard_fp_bg); - mWallpaperTexColor = Utils.getColorAttrDefaultColor(mContext, R.attr.wallpaperTextColor); + mWallpaperTexColor = Utils.getColorAttrDefaultColor(mContext, + R.attr.wallpaperTextColorAccent); mTextColorPrimary = Utils.getColorAttrDefaultColor(mContext, android.R.attr.textColorPrimary); } |