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

Commit 36f2a1f4 authored by Beverly's avatar Beverly
Browse files

Introduce new colorful wallpaperTextColor

Use for clock and udfps icon

Test: manual
Fixes: 182799149
Change-Id: Ife6f4eb9c352bdde41570eb82e6c5f480032a214
parent 2181315b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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">
+2 −0
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }