diff --git a/packages/SystemUI/res/drawable/face_dialog_dark_to_checkmark.xml b/packages/SystemUI/res/drawable/face_dialog_dark_to_checkmark.xml index e4ace67577c39..fe1951699eaa8 100644 --- a/packages/SystemUI/res/drawable/face_dialog_dark_to_checkmark.xml +++ b/packages/SystemUI/res/drawable/face_dialog_dark_to_checkmark.xml @@ -40,7 +40,7 @@ @@ -68,7 +68,7 @@ android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c " android:strokeWidth="2.5" android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> @@ -85,7 +85,7 @@ android:pathData=" M4.71 1.1 C3.71,2.12 2.32,2.75 0.79,2.75 C-2.25,2.75 -4.7,0.29 -4.7,-2.75 " android:strokeWidth="2" android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> @@ -99,7 +99,7 @@ @@ -112,7 +112,7 @@ @@ -125,7 +125,7 @@ @@ -386,8 +386,8 @@ android:duration="67" android:propertyName="strokeColor" android:startOffset="0" - android:valueFrom="?android:attr/colorAccent" - android:valueTo="?android:attr/colorAccent" + android:valueFrom="@color/biometric_dialog_accent" + android:valueTo="@color/biometric_dialog_accent" android:valueType="colorType"> @@ -397,8 +397,8 @@ android:duration="17" android:propertyName="strokeColor" android:startOffset="67" - android:valueFrom="?android:attr/colorAccent" - android:valueTo="?android:attr/colorAccent" + android:valueFrom="@color/biometric_dialog_accent" + android:valueTo="@color/biometric_dialog_accent" android:valueType="colorType"> diff --git a/packages/SystemUI/res/drawable/face_dialog_dark_to_error.xml b/packages/SystemUI/res/drawable/face_dialog_dark_to_error.xml index a96d21addb2b7..0c05019bf1992 100644 --- a/packages/SystemUI/res/drawable/face_dialog_dark_to_error.xml +++ b/packages/SystemUI/res/drawable/face_dialog_dark_to_error.xml @@ -36,7 +36,7 @@ android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c " android:strokeWidth="2.5" android:strokeAlpha="1" - android:strokeColor="@color/biometric_face_icon_gray" + android:strokeColor="@color/biometric_dialog_gray" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> @@ -45,7 +45,7 @@ android:pathData=" M33.75 42.75 C32.75,43.76 31.37,44.39 29.83,44.39 C26.8,44.39 24.34,41.93 24.34,38.9 " android:strokeWidth="2" android:strokeAlpha="1" - android:strokeColor="@color/biometric_face_icon_gray" + android:strokeColor="@color/biometric_dialog_gray" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> @@ -58,7 +58,7 @@ @@ -71,7 +71,7 @@ @@ -82,7 +82,7 @@ @@ -99,8 +99,8 @@ android:duration="50" android:propertyName="strokeColor" android:startOffset="0" - android:valueFrom="@color/biometric_face_icon_gray" - android:valueTo="@color/biometric_face_icon_gray" + android:valueFrom="@color/biometric_dialog_gray" + android:valueTo="@color/biometric_dialog_gray" android:valueType="colorType"> @@ -110,8 +110,8 @@ android:duration="17" android:propertyName="strokeColor" android:startOffset="50" - android:valueFrom="@color/biometric_face_icon_gray" - android:valueTo="?android:attr/colorError" + android:valueFrom="@color/biometric_dialog_gray" + android:valueTo="@color/biometric_dialog_error" android:valueType="colorType"> @@ -127,8 +127,8 @@ android:duration="50" android:propertyName="strokeColor" android:startOffset="0" - android:valueFrom="@color/biometric_face_icon_gray" - android:valueTo="@color/biometric_face_icon_gray" + android:valueFrom="@color/biometric_dialog_gray" + android:valueTo="@color/biometric_dialog_gray" android:valueType="colorType"> @@ -138,8 +138,8 @@ android:duration="17" android:propertyName="strokeColor" android:startOffset="50" - android:valueFrom="@color/biometric_face_icon_gray" - android:valueTo="?android:attr/colorError" + android:valueFrom="@color/biometric_dialog_gray" + android:valueTo="@color/biometric_dialog_error" android:valueType="colorType"> @@ -369,8 +369,8 @@ android:duration="50" android:propertyName="fillColor" android:startOffset="0" - android:valueFrom="@color/biometric_face_icon_gray" - android:valueTo="@color/biometric_face_icon_gray" + android:valueFrom="@color/biometric_dialog_gray" + android:valueTo="@color/biometric_dialog_gray" android:valueType="colorType"> @@ -380,8 +380,8 @@ android:duration="17" android:propertyName="fillColor" android:startOffset="50" - android:valueFrom="@color/biometric_face_icon_gray" - android:valueTo="?android:attr/colorError" + android:valueFrom="@color/biometric_dialog_gray" + android:valueTo="@color/biometric_dialog_error" android:valueType="colorType"> diff --git a/packages/SystemUI/res/drawable/face_dialog_error_to_idle.xml b/packages/SystemUI/res/drawable/face_dialog_error_to_idle.xml index aca12fce8d2fe..d3cee25a2146f 100644 --- a/packages/SystemUI/res/drawable/face_dialog_error_to_idle.xml +++ b/packages/SystemUI/res/drawable/face_dialog_error_to_idle.xml @@ -29,7 +29,7 @@ android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c " android:strokeWidth="2.5" android:strokeAlpha="1" - android:strokeColor="?android:attr/colorError" + android:strokeColor="@color/biometric_dialog_error" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> @@ -38,7 +38,7 @@ android:pathData=" M34.78 38.76 C33.83,38.75 31.54,38.75 30.01,38.75 C26.97,38.75 26.14,38.75 24.3,38.76 " android:strokeWidth="2.5" android:strokeAlpha="1" - android:strokeColor="?android:attr/colorError" + android:strokeColor="@color/biometric_dialog_error" android:trimPathStart="0.34" android:trimPathEnd="0.5700000000000001" android:trimPathOffset="0" /> @@ -51,7 +51,7 @@ @@ -64,7 +64,7 @@ @@ -75,7 +75,7 @@ @@ -91,8 +91,8 @@ android:duration="83" android:propertyName="strokeColor" android:startOffset="0" - android:valueFrom="?android:attr/colorError" - android:valueTo="?android:attr/colorError" + android:valueFrom="@color/biometric_dialog_error" + android:valueTo="@color/biometric_dialog_error" android:valueType="colorType"> @@ -102,8 +102,8 @@ android:duration="17" android:propertyName="strokeColor" android:startOffset="83" - android:valueFrom="?android:attr/colorError" - android:valueTo="@color/biometric_face_icon_gray" + android:valueFrom="@color/biometric_dialog_error" + android:valueTo="@color/biometric_dialog_gray" android:valueType="colorType"> @@ -119,8 +119,8 @@ android:duration="83" android:propertyName="strokeColor" android:startOffset="0" - android:valueFrom="?android:attr/colorError" - android:valueTo="?android:attr/colorError" + android:valueFrom="@color/biometric_dialog_error" + android:valueTo="@color/biometric_dialog_error" android:valueType="colorType"> @@ -130,8 +130,8 @@ android:duration="17" android:propertyName="strokeColor" android:startOffset="83" - android:valueFrom="?android:attr/colorError" - android:valueTo="@color/biometric_face_icon_gray" + android:valueFrom="@color/biometric_dialog_error" + android:valueTo="@color/biometric_dialog_gray" android:valueType="colorType"> @@ -427,8 +427,8 @@ android:duration="83" android:propertyName="fillColor" android:startOffset="0" - android:valueFrom="?android:attr/colorError" - android:valueTo="?android:attr/colorError" + android:valueFrom="@color/biometric_dialog_error" + android:valueTo="@color/biometric_dialog_error" android:valueType="colorType"> @@ -438,8 +438,8 @@ android:duration="17" android:propertyName="fillColor" android:startOffset="83" - android:valueFrom="?android:attr/colorError" - android:valueTo="@color/biometric_face_icon_gray" + android:valueFrom="@color/biometric_dialog_error" + android:valueTo="@color/biometric_dialog_gray" android:valueType="colorType"> diff --git a/packages/SystemUI/res/drawable/face_dialog_pulse_dark_to_light.xml b/packages/SystemUI/res/drawable/face_dialog_pulse_dark_to_light.xml index 0de856c28dcd3..427be1447679b 100644 --- a/packages/SystemUI/res/drawable/face_dialog_pulse_dark_to_light.xml +++ b/packages/SystemUI/res/drawable/face_dialog_pulse_dark_to_light.xml @@ -18,7 +18,7 @@ android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c " android:strokeWidth="2.5" android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> @@ -27,26 +27,26 @@ android:pathData=" M33.75 42.75 C32.75,43.77 31.37,44.39 29.83,44.39 C26.8,44.39 24.34,41.93 24.34,38.9 " android:strokeWidth="2" android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> diff --git a/packages/SystemUI/res/drawable/face_dialog_pulse_light_to_dark.xml b/packages/SystemUI/res/drawable/face_dialog_pulse_light_to_dark.xml index 31a0cbb2605c7..ab26408a2ed6e 100644 --- a/packages/SystemUI/res/drawable/face_dialog_pulse_light_to_dark.xml +++ b/packages/SystemUI/res/drawable/face_dialog_pulse_light_to_dark.xml @@ -18,7 +18,7 @@ android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c " android:strokeWidth="2.5" android:strokeAlpha="0.5" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> @@ -27,26 +27,26 @@ android:pathData=" M33.75 42.75 C32.75,43.77 31.37,44.39 29.83,44.39 C26.8,44.39 24.34,41.93 24.34,38.9 " android:strokeWidth="2" android:strokeAlpha="0.5" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> diff --git a/packages/SystemUI/res/drawable/face_dialog_wink_from_dark.xml b/packages/SystemUI/res/drawable/face_dialog_wink_from_dark.xml index adbe446abb9de..0cd542d51b517 100644 --- a/packages/SystemUI/res/drawable/face_dialog_wink_from_dark.xml +++ b/packages/SystemUI/res/drawable/face_dialog_wink_from_dark.xml @@ -13,7 +13,7 @@ android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c " android:strokeWidth="2.5" android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> @@ -30,14 +30,14 @@ android:pathData=" M33.75 42.75 C32.75,43.77 31.37,44.39 29.83,44.39 C26.8,44.39 24.34,41.93 24.34,38.9 " android:strokeWidth="2" android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:trimPathStart="0" android:trimPathEnd="1" android:trimPathOffset="0" /> diff --git a/packages/SystemUI/res/drawable/fingerprint_dialog_error_to_fp.xml b/packages/SystemUI/res/drawable/fingerprint_dialog_error_to_fp.xml index 8f411f4c07feb..33263a9131a01 100644 --- a/packages/SystemUI/res/drawable/fingerprint_dialog_error_to_fp.xml +++ b/packages/SystemUI/res/drawable/fingerprint_dialog_error_to_fp.xml @@ -39,7 +39,7 @@ android:name="_R_G_L_1_G_D_0_P_0" android:pathData=" M79.63 67.24 C79.63,67.24 111.5,47.42 147.83,67.24 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -50,7 +50,7 @@ android:name="_R_G_L_1_G_D_1_P_0" android:pathData=" M64.27 98.07 C64.27,98.07 80.13,73.02 113.98,73.02 C147.83,73.02 163.56,97.26 163.56,97.26 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -61,7 +61,7 @@ android:name="_R_G_L_1_G_D_2_P_0" android:pathData=" M72.53 151.07 C72.53,151.07 62.46,122.89 76.16,105.55 C89.86,88.21 106.72,86.73 113.98,86.73 C121.08,86.73 153.51,90.62 158.7,125.87 C159.14,128.82 158.8,132.88 157.18,136.09 C154.88,140.63 150.62,143.63 145.85,143.97 C133.78,144.85 129.76,137.92 129.26,128.49 C128.88,121.19 122.49,115.35 113.15,115.35 C102.91,115.35 95.97,126.69 99.77,139.74 C103.57,152.78 111.33,163.85 130.32,169.13 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -72,7 +72,7 @@ android:name="_R_G_L_1_G_D_3_P_0" android:pathData=" M100.6 167.84 C100.6,167.84 82.76,152.1 83.75,130.31 C84.75,108.53 102.58,100.7 113.73,100.7 C124.87,100.7 144.19,108.56 144.19,130.01 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -83,7 +83,7 @@ android:name="_R_G_L_1_G_D_4_P_0" android:pathData=" M113.73 129.17 C113.73,129.17 113.15,161.33 149.15,156.58 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -109,7 +109,7 @@ @@ -124,7 +124,7 @@ @@ -132,7 +132,7 @@ android:name="_R_G_L_0_G_D_2_P_0" android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorError" + android:strokeColor="@color/biometric_dialog_error" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="2.5" diff --git a/packages/SystemUI/res/drawable/fingerprint_dialog_fp_to_error.xml b/packages/SystemUI/res/drawable/fingerprint_dialog_fp_to_error.xml index 89b822840b14c..b899828cd85c6 100644 --- a/packages/SystemUI/res/drawable/fingerprint_dialog_fp_to_error.xml +++ b/packages/SystemUI/res/drawable/fingerprint_dialog_fp_to_error.xml @@ -39,7 +39,7 @@ android:name="_R_G_L_1_G_D_0_P_0" android:pathData=" M79.63 67.24 C79.63,67.24 111.5,47.42 147.83,67.24 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -50,7 +50,7 @@ android:name="_R_G_L_1_G_D_1_P_0" android:pathData=" M64.27 98.07 C64.27,98.07 80.13,73.02 113.98,73.02 C147.83,73.02 163.56,97.26 163.56,97.26 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -61,7 +61,7 @@ android:name="_R_G_L_1_G_D_2_P_0" android:pathData=" M72.53 151.07 C72.53,151.07 62.46,122.89 76.16,105.55 C89.86,88.21 106.72,86.73 113.98,86.73 C121.08,86.73 153.51,90.62 158.7,125.87 C159.14,128.82 158.8,132.88 157.18,136.09 C154.88,140.63 150.62,143.63 145.85,143.97 C133.78,144.85 129.76,137.92 129.26,128.49 C128.88,121.19 122.49,115.35 113.15,115.35 C102.91,115.35 95.97,126.69 99.77,139.74 C103.57,152.78 111.33,163.85 130.32,169.13 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -72,7 +72,7 @@ android:name="_R_G_L_1_G_D_3_P_0" android:pathData=" M100.6 167.84 C100.6,167.84 82.76,152.1 83.75,130.31 C84.75,108.53 102.58,100.7 113.73,100.7 C124.87,100.7 144.19,108.56 144.19,130.01 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -83,7 +83,7 @@ android:name="_R_G_L_1_G_D_4_P_0" android:pathData=" M113.73 129.17 C113.73,129.17 113.15,161.33 149.15,156.58 " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorAccent" + android:strokeColor="@color/biometric_dialog_accent" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="5.5" @@ -109,7 +109,7 @@ @@ -124,7 +124,7 @@ @@ -132,7 +132,7 @@ android:name="_R_G_L_0_G_D_2_P_0" android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c " android:strokeAlpha="1" - android:strokeColor="?android:attr/colorError" + android:strokeColor="@color/biometric_dialog_error" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="2.5" diff --git a/packages/SystemUI/res/layout/biometric_dialog.xml b/packages/SystemUI/res/layout/biometric_dialog.xml index c452855cc9e97..1abb8735ddabf 100644 --- a/packages/SystemUI/res/layout/biometric_dialog.xml +++ b/packages/SystemUI/res/layout/biometric_dialog.xml @@ -119,7 +119,7 @@ android:textSize="12sp" android:gravity="center_horizontal" android:accessibilityLiveRegion="polite" - android:textColor="?android:attr/textColorSecondary"/> + android:textColor="@color/biometric_dialog_gray"/> @color/GM2_red_300 + + + #ff888888 + #ff80cbc4 + #fff28b82 + \ No newline at end of file diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index 2200cf0112acf..14a120b362792 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -157,7 +157,9 @@ #80000000 - #ff757575 + #ff757575 + #ff008577 + #ffd93025 #ccffffff diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java b/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java index f17fcbab31c40..2cb12ecfcd0cb 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java @@ -153,7 +153,7 @@ public abstract class BiometricDialogView extends LinearLayout { .getDimension(R.dimen.biometric_dialog_animation_translation_offset); TypedArray array = getContext().obtainStyledAttributes( - new int[]{android.R.attr.colorError, android.R.attr.textColorSecondary}); + new int[]{R.color.biometric_dialog_error, R.color.biometric_dialog_gray}); mErrorColor = array.getColor(0, 0); mTextColor = array.getColor(1, 0); array.recycle();