From eedebc4850749ba8a7a70e17a41399997806856a Mon Sep 17 00:00:00 2001 From: Jakub Adamek Date: Fri, 23 Sep 2016 09:04:23 +0100 Subject: [PATCH] Adding customizable background colour support. Also changes how sub-styles are created: copies the modified properties like e.g. fullscreen from Material. Previously most sub-styles inherited from their material counterparts and updated just some colors. The new approach should be more stable wrt changes in device default theme. It would need updating when Material is updated but these kind of properties does not look like it would be updated often. Bug: 31459804 Change-Id: I78862bf33ca3dac586ad0a25f17bf8c0008a1dd0 --- ...ckground_cache_hint_selector_device_default.xml | 20 ++ .../res/values-watch/themes_device_defaults.xml | 4 +- core/res/res/values/colors_device_defaults.xml | 7 + core/res/res/values/themes_device_defaults.xml | 266 ++++++++++----------- 4 files changed, 157 insertions(+), 140 deletions(-) create mode 100644 core/res/res/color/background_cache_hint_selector_device_default.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 000000000000..3cb4bbc130cb --- /dev/null +++ b/core/res/res/color/background_cache_hint_selector_device_default.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/core/res/res/values-watch/themes_device_defaults.xml b/core/res/res/values-watch/themes_device_defaults.xml index 2313b26c1f8d..0471444c36eb 100644 --- a/core/res/res/values-watch/themes_device_defaults.xml +++ b/core/res/res/values-watch/themes_device_defaults.xml @@ -32,12 +32,12 @@ easier. --> - - - - - - - - - @@ -307,66 +301,52 @@ easier. - + + + - - - - - - - - - - - @@ -651,11 +633,6 @@ easier. @dimen/dialog_fixed_width_minor @dimen/dialog_fixed_height_major @dimen/dialog_fixed_height_minor - - - @color/primary_device_default_light - @color/primary_dark_device_default_light - @color/accent_device_default_light @@ -664,39 +641,19 @@ easier. @dimen/dialog_fixed_width_minor @dimen/dialog_fixed_height_major @dimen/dialog_fixed_height_minor - - - @color/primary_device_default_light - @color/primary_dark_device_default_light - @color/accent_device_default_light - + + + @@ -738,6 +707,9 @@ easier. @color/primary_dark_device_default_settings @color/secondary_device_default_settings @color/accent_device_default_light + @color/background_device_default_dark + @color/background_floating_device_default_dark + @color/background_cache_hint_selector_device_default @@ -758,6 +733,9 @@ easier. @color/primary_dark_device_default_settings @color/secondary_device_default_settings @color/accent_device_default_dark + @color/background_device_default_dark + @color/background_floating_device_default_dark + @color/background_cache_hint_selector_device_default @@ -800,6 +787,9 @@ easier. @color/primary_device_default_light @color/primary_dark_device_default_light @color/accent_device_default_light + @color/background_device_default_light + @color/background_floating_device_default_light + @color/background_cache_hint_selector_device_default -- 2.11.0