From 9072dcd82c8c09ec2758726dfa197f02079fd0f7 Mon Sep 17 00:00:00 2001 From: FEI WU Date: Wed, 9 Nov 2016 14:12:29 -0800 Subject: Update colorPrimary in watch 1. Update colorPrimary in watch. This value is only used for icons and switch background on watch. 2. Replace hard coded color and disable alpha in switch track. 3. Rename watch_switch_track_mtrl_alpha to be watch_switch_track_mtrl since it's no longer a alpha mask. Change-Id: Ia1eaae62a934c89e3ca6cc8736b256c552f0329b --- .../color/watch_switch_track_color_material.xml | 22 +++++++++++++++++++++ .../res/drawable-hdpi/watch_switch_track_mtrl.png | Bin 0 -> 910 bytes .../watch_switch_track_mtrl_alpha.png | Bin 910 -> 0 bytes .../res/drawable-xhdpi/watch_switch_track_mtrl.png | Bin 0 -> 1248 bytes .../watch_switch_track_mtrl_alpha.png | Bin 1248 -> 0 bytes .../drawable-xxhdpi/watch_switch_track_mtrl.png | Bin 0 -> 1992 bytes .../watch_switch_track_mtrl_alpha.png | Bin 1992 -> 0 bytes .../res/drawable/watch_switch_track_material.xml | 21 -------------------- .../res/layout-watch/preference_widget_switch.xml | 3 ++- core/res/res/values-watch/colors_material.xml | 2 +- 10 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 core/res/res/color/watch_switch_track_color_material.xml create mode 100644 core/res/res/drawable-hdpi/watch_switch_track_mtrl.png delete mode 100644 core/res/res/drawable-hdpi/watch_switch_track_mtrl_alpha.png create mode 100644 core/res/res/drawable-xhdpi/watch_switch_track_mtrl.png delete mode 100644 core/res/res/drawable-xhdpi/watch_switch_track_mtrl_alpha.png create mode 100644 core/res/res/drawable-xxhdpi/watch_switch_track_mtrl.png delete mode 100644 core/res/res/drawable-xxhdpi/watch_switch_track_mtrl_alpha.png delete mode 100644 core/res/res/drawable/watch_switch_track_material.xml diff --git a/core/res/res/color/watch_switch_track_color_material.xml b/core/res/res/color/watch_switch_track_color_material.xml new file mode 100644 index 000000000000..c7dc5d34204a --- /dev/null +++ b/core/res/res/color/watch_switch_track_color_material.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/core/res/res/drawable-hdpi/watch_switch_track_mtrl.png b/core/res/res/drawable-hdpi/watch_switch_track_mtrl.png new file mode 100644 index 000000000000..ecee3e137ef6 Binary files /dev/null and b/core/res/res/drawable-hdpi/watch_switch_track_mtrl.png differ diff --git a/core/res/res/drawable-hdpi/watch_switch_track_mtrl_alpha.png b/core/res/res/drawable-hdpi/watch_switch_track_mtrl_alpha.png deleted file mode 100644 index ecee3e137ef6..000000000000 Binary files a/core/res/res/drawable-hdpi/watch_switch_track_mtrl_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xhdpi/watch_switch_track_mtrl.png b/core/res/res/drawable-xhdpi/watch_switch_track_mtrl.png new file mode 100644 index 000000000000..1aa544227380 Binary files /dev/null and b/core/res/res/drawable-xhdpi/watch_switch_track_mtrl.png differ diff --git a/core/res/res/drawable-xhdpi/watch_switch_track_mtrl_alpha.png b/core/res/res/drawable-xhdpi/watch_switch_track_mtrl_alpha.png deleted file mode 100644 index 1aa544227380..000000000000 Binary files a/core/res/res/drawable-xhdpi/watch_switch_track_mtrl_alpha.png and /dev/null differ diff --git a/core/res/res/drawable-xxhdpi/watch_switch_track_mtrl.png b/core/res/res/drawable-xxhdpi/watch_switch_track_mtrl.png new file mode 100644 index 000000000000..af2042be7f59 Binary files /dev/null and b/core/res/res/drawable-xxhdpi/watch_switch_track_mtrl.png differ diff --git a/core/res/res/drawable-xxhdpi/watch_switch_track_mtrl_alpha.png b/core/res/res/drawable-xxhdpi/watch_switch_track_mtrl_alpha.png deleted file mode 100644 index af2042be7f59..000000000000 Binary files a/core/res/res/drawable-xxhdpi/watch_switch_track_mtrl_alpha.png and /dev/null differ diff --git a/core/res/res/drawable/watch_switch_track_material.xml b/core/res/res/drawable/watch_switch_track_material.xml deleted file mode 100644 index 79e92a331071..000000000000 --- a/core/res/res/drawable/watch_switch_track_material.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - diff --git a/core/res/res/layout-watch/preference_widget_switch.xml b/core/res/res/layout-watch/preference_widget_switch.xml index 5881cf0c4d1e..a1a845abfe3a 100644 --- a/core/res/res/layout-watch/preference_widget_switch.xml +++ b/core/res/res/layout-watch/preference_widget_switch.xml @@ -24,7 +24,8 @@ android:thumb="@drawable/watch_switch_thumb_material_anim" android:thumbTint="@color/watch_switch_thumb_color_material" android:thumbTintMode="multiply" - android:track="@drawable/watch_switch_track_material" + android:track="@drawable/watch_switch_track_mtrl" + android:trackTint="@color/watch_switch_track_color_material" android:focusable="false" android:clickable="false" android:background="@null" /> diff --git a/core/res/res/values-watch/colors_material.xml b/core/res/res/values-watch/colors_material.xml index 18bfd4db5ae0..92f77622a2a2 100644 --- a/core/res/res/values-watch/colors_material.xml +++ b/core/res/res/values-watch/colors_material.xml @@ -22,7 +22,7 @@ #ff5e97f6 #ffd0def7 - #4D4D4D + #33ffffff #ff919699 -- cgit v1.2.3-59-g8ed1b