From e39fbd8785c9f9d7489796f5a88e47f7d5f88ebc Mon Sep 17 00:00:00 2001 From: Jakub Adamek Date: Fri, 14 Oct 2016 09:13:39 +0100 Subject: [PATCH] Adding customizable background color support for watch. values-watch/themes.xml changes some Material themes, e.g. Dialog inherits from Dark rather than Light. Hence I have moved all of the theme modifications into values-watch/themes_device_defaults.xml as they wouldn't be the same for phones. Tested: Manually on watch and on angler. Ran CTS host side theme tests on cw-f-dev, all passed. cts-tf > run cts -m CtsThemeHostTestCases Bug: 31459804 Change-Id: I74a8502469cc76ac27a471c0bf18b22fd57f5418 --- ...und_cache_hint_selector_device_default.xml | 21 ++ .../values-watch/colors_device_defaults.xml | 21 ++ core/res/res/values-watch/colors_material.xml | 4 +- .../values-watch/themes_device_defaults.xml | 320 +++++++++++++++++- .../res/res/values/themes_device_defaults.xml | 4 +- 5 files changed, 359 insertions(+), 11 deletions(-) create mode 100644 core/res/res/color/background_cache_hint_selector_device_default.xml create mode 100644 core/res/res/values-watch/colors_device_defaults.xml diff --git a/core/res/res/color/background_cache_hint_selector_device_default.xml b/core/res/res/color/background_cache_hint_selector_device_default.xml new file mode 100644 index 0000000000000..4470754f41550 --- /dev/null +++ b/core/res/res/color/background_cache_hint_selector_device_default.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/core/res/res/values-watch/colors_device_defaults.xml b/core/res/res/values-watch/colors_device_defaults.xml new file mode 100644 index 0000000000000..9150cc409e137 --- /dev/null +++ b/core/res/res/values-watch/colors_device_defaults.xml @@ -0,0 +1,21 @@ + + + + + + @color/btn_default_material_dark + diff --git a/core/res/res/values-watch/colors_material.xml b/core/res/res/values-watch/colors_material.xml index 54eece4f2bdf4..18bfd4db5ae04 100644 --- a/core/res/res/values-watch/colors_material.xml +++ b/core/res/res/values-watch/colors_material.xml @@ -17,8 +17,10 @@ #ff232e33 #ff3e5059 - #ff5e97f6 + #ff2e4978 #ff4285f4 + #ff5e97f6 + #ffd0def7 #4D4D4D diff --git a/core/res/res/values-watch/themes_device_defaults.xml b/core/res/res/values-watch/themes_device_defaults.xml index 2313b26c1f8d5..aa1594d465166 100644 --- a/core/res/res/values-watch/themes_device_defaults.xml +++ b/core/res/res/values-watch/themes_device_defaults.xml @@ -1,5 +1,5 @@ - + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/values/themes_device_defaults.xml b/core/res/res/values/themes_device_defaults.xml index 0e98adea434af..b19858ef194de 100644 --- a/core/res/res/values/themes_device_defaults.xml +++ b/core/res/res/values/themes_device_defaults.xml @@ -49,7 +49,7 @@ easier. Type.DeviceDefault.Etc (for example, {@code Widget.DeviceDefault.Button} and {@code TextAppearance.DeviceDefault.Widget.PopupMenu.Large}).

--> - +