From ae63c3db14f4ddf89d33df894af53fb066226da3 Mon Sep 17 00:00:00 2001 From: Matthew Fritze Date: Tue, 19 Jul 2016 13:04:17 -0700 Subject: [PATCH] Error colors to point to frameworks instead of hard-coding them Rather than have each instance of the system error color hard code the argb values, they now point to frameworks/base/core/res/. Bug: 30021554 Change-Id: I6ec0512c5e69bc822810745b1745fa9feff95150 --- res/drawable/ic_fingerprint_error.xml | 6 +++--- res/values/colors.xml | 9 +++------ res/values/styles.xml | 6 +++--- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/res/drawable/ic_fingerprint_error.xml b/res/drawable/ic_fingerprint_error.xml index d00280d929a..b822d45d3d6 100644 --- a/res/drawable/ic_fingerprint_error.xml +++ b/res/drawable/ic_fingerprint_error.xml @@ -19,12 +19,12 @@ android:viewportWidth="32.0" android:viewportHeight="32.0"> diff --git a/res/values/colors.xml b/res/values/colors.xml index 4a8cf99162b..2155245911d 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -50,16 +50,14 @@ #89ffffff #89000000 - #fff4511e - #00000000 #ff37474f - @color/warning + @*android:color/system_error #ffffff @android:color/white - @color/system_warning_color + @*android:color/system_error ?android:attr/colorAccent #ffffffff @@ -76,7 +74,6 @@ #ffe0e0e0 @*android:color/material_deep_teal_500 - #ff5621 #60000000 #1fffffff ?android:attr/colorAccent @@ -91,7 +88,7 @@ #ff384248 - @color/system_warning_color + @*android:color/system_error #ffabffec diff --git a/res/values/styles.xml b/res/values/styles.xml index 87da4b3defe..12b794ae460 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -219,7 +219,7 @@ 12sp viewStart @android:style/TextAppearance.Material.Body1 - @color/warning + @*android:color/system_error