diff options
author | Maurice Lam <yukl@google.com> | 2015-07-09 17:16:35 -0700 |
---|---|---|
committer | Maurice Lam <yukl@google.com> | 2015-07-14 01:22:38 +0000 |
commit | 9fa8d9f24812a9862f64f1cffd9c5b99591062ce (patch) | |
tree | dfae4cbafe145e0589b355814a284406395b5553 | |
parent | 53dd1d4deea9968f1255018248ff0393252032dd (diff) | |
download | packages_apps_Settings-9fa8d9f24812a9862f64f1cffd9c5b99591062ce.zip packages_apps_Settings-9fa8d9f24812a9862f64f1cffd9c5b99591062ce.tar.gz packages_apps_Settings-9fa8d9f24812a9862f64f1cffd9c5b99591062ce.tar.bz2 |
[Fingerprint] Use accent color for fingerprint highlight
Set the fingerprint activated color, while registering a new
fingerprint to be 50% alpha of the accent color. This allows the
color to be changed with the theme, so that it will be highlighted
blue during setup wizard.
Bug: 21695577
Change-Id: Iee68506a4fbb8e8996bdb52694992ac460ae943d
-rw-r--r-- | res/color/fingerprint_indicator_background_activated.xml | 20 | ||||
-rw-r--r-- | res/values/colors.xml | 1 |
2 files changed, 20 insertions, 1 deletions
diff --git a/res/color/fingerprint_indicator_background_activated.xml b/res/color/fingerprint_indicator_background_activated.xml new file mode 100644 index 0000000..32f5383 --- /dev/null +++ b/res/color/fingerprint_indicator_background_activated.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:alpha="0.5" android:color="?android:attr/colorAccent" /> +</selector> diff --git a/res/values/colors.xml b/res/values/colors.xml index 0395989..f3fea10 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -67,7 +67,6 @@ <color name="fingerprint_progress_ring">?android:attr/colorAccent</color> <color name="fingerprint_progress_ring_bg">#20000000</color> <color name="fingerprint_indicator_background_resting">#12000000</color> - <color name="fingerprint_indicator_background_activated">#80009688</color> <color name="running_processes_system_ram">#ff384248</color> <color name="running_processes_apps_ram">#ff009587</color> |