From 9072dcd82c8c09ec2758726dfa197f02079fd0f7 Mon Sep 17 00:00:00 2001 From: FEI WU Date: Wed, 9 Nov 2016 14:12:29 -0800 Subject: [PATCH] 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 --- .../watch_switch_track_color_material.xml} | 15 ++++++++------- ...trl_alpha.png => watch_switch_track_mtrl.png} | Bin ...trl_alpha.png => watch_switch_track_mtrl.png} | Bin ...trl_alpha.png => watch_switch_track_mtrl.png} | Bin .../layout-watch/preference_widget_switch.xml | 3 ++- core/res/res/values-watch/colors_material.xml | 2 +- 6 files changed, 11 insertions(+), 9 deletions(-) rename core/res/res/{drawable/watch_switch_track_material.xml => color/watch_switch_track_color_material.xml} (72%) rename core/res/res/drawable-hdpi/{watch_switch_track_mtrl_alpha.png => watch_switch_track_mtrl.png} (100%) rename core/res/res/drawable-xhdpi/{watch_switch_track_mtrl_alpha.png => watch_switch_track_mtrl.png} (100%) rename core/res/res/drawable-xxhdpi/{watch_switch_track_mtrl_alpha.png => watch_switch_track_mtrl.png} (100%) diff --git a/core/res/res/drawable/watch_switch_track_material.xml b/core/res/res/color/watch_switch_track_color_material.xml similarity index 72% rename from core/res/res/drawable/watch_switch_track_material.xml rename to core/res/res/color/watch_switch_track_color_material.xml index 79e92a3310710..c7dc5d34204a0 100644 --- a/core/res/res/drawable/watch_switch_track_material.xml +++ b/core/res/res/color/watch_switch_track_color_material.xml @@ -1,9 +1,12 @@ - - - - - - - + + + \ No newline at end of file diff --git a/core/res/res/drawable-hdpi/watch_switch_track_mtrl_alpha.png b/core/res/res/drawable-hdpi/watch_switch_track_mtrl.png similarity index 100% rename from core/res/res/drawable-hdpi/watch_switch_track_mtrl_alpha.png rename to core/res/res/drawable-hdpi/watch_switch_track_mtrl.png diff --git a/core/res/res/drawable-xhdpi/watch_switch_track_mtrl_alpha.png b/core/res/res/drawable-xhdpi/watch_switch_track_mtrl.png similarity index 100% rename from core/res/res/drawable-xhdpi/watch_switch_track_mtrl_alpha.png rename to core/res/res/drawable-xhdpi/watch_switch_track_mtrl.png diff --git a/core/res/res/drawable-xxhdpi/watch_switch_track_mtrl_alpha.png b/core/res/res/drawable-xxhdpi/watch_switch_track_mtrl.png similarity index 100% rename from core/res/res/drawable-xxhdpi/watch_switch_track_mtrl_alpha.png rename to core/res/res/drawable-xxhdpi/watch_switch_track_mtrl.png diff --git a/core/res/res/layout-watch/preference_widget_switch.xml b/core/res/res/layout-watch/preference_widget_switch.xml index 5881cf0c4d1ea..a1a845abfe3ab 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 18bfd4db5ae04..92f77622a2a28 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