From 91366967cd3a7f819ac88ba500bae82e57e8b7cc Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Tue, 2 Mar 2021 21:21:09 -0800 Subject: [PATCH] Restore text color state list Text colors were previously assigned directly to color resources, breaking disabled states. Test: manual Fixes: 180316269 Change-Id: I935d6634f83d057ea3a6d2130bec622302f5525e --- ...text_color_primary_device_default_dark.xml | 23 +++++++++++++++++++ ...ext_color_primary_device_default_light.xml | 23 +++++++++++++++++++ ...xt_color_secondary_device_default_dark.xml | 23 +++++++++++++++++++ ...t_color_secondary_device_default_light.xml | 23 +++++++++++++++++++ ...ext_color_tertiary_device_default_dark.xml | 23 +++++++++++++++++++ ...xt_color_tertiary_device_default_light.xml | 23 +++++++++++++++++++ .../res/res/values/colors_device_defaults.xml | 7 +----- 7 files changed, 139 insertions(+), 6 deletions(-) create mode 100644 core/res/res/color/text_color_primary_device_default_dark.xml create mode 100644 core/res/res/color/text_color_primary_device_default_light.xml create mode 100644 core/res/res/color/text_color_secondary_device_default_dark.xml create mode 100644 core/res/res/color/text_color_secondary_device_default_light.xml create mode 100644 core/res/res/color/text_color_tertiary_device_default_dark.xml create mode 100644 core/res/res/color/text_color_tertiary_device_default_light.xml diff --git a/core/res/res/color/text_color_primary_device_default_dark.xml b/core/res/res/color/text_color_primary_device_default_dark.xml new file mode 100644 index 0000000000000..90d6b07b24bdb --- /dev/null +++ b/core/res/res/color/text_color_primary_device_default_dark.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/core/res/res/color/text_color_primary_device_default_light.xml b/core/res/res/color/text_color_primary_device_default_light.xml new file mode 100644 index 0000000000000..bdc4fa92b2f2f --- /dev/null +++ b/core/res/res/color/text_color_primary_device_default_light.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/core/res/res/color/text_color_secondary_device_default_dark.xml b/core/res/res/color/text_color_secondary_device_default_dark.xml new file mode 100644 index 0000000000000..799636addd4b9 --- /dev/null +++ b/core/res/res/color/text_color_secondary_device_default_dark.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/core/res/res/color/text_color_secondary_device_default_light.xml b/core/res/res/color/text_color_secondary_device_default_light.xml new file mode 100644 index 0000000000000..4793bb8e03606 --- /dev/null +++ b/core/res/res/color/text_color_secondary_device_default_light.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/core/res/res/color/text_color_tertiary_device_default_dark.xml b/core/res/res/color/text_color_tertiary_device_default_dark.xml new file mode 100644 index 0000000000000..c82863109e7d5 --- /dev/null +++ b/core/res/res/color/text_color_tertiary_device_default_dark.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/core/res/res/color/text_color_tertiary_device_default_light.xml b/core/res/res/color/text_color_tertiary_device_default_light.xml new file mode 100644 index 0000000000000..82c420ad97fc0 --- /dev/null +++ b/core/res/res/color/text_color_tertiary_device_default_light.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/core/res/res/values/colors_device_defaults.xml b/core/res/res/values/colors_device_defaults.xml index 1020c14ef6654..9b5632174e44b 100644 --- a/core/res/res/values/colors_device_defaults.xml +++ b/core/res/res/values/colors_device_defaults.xml @@ -42,12 +42,7 @@ @color/system_primary_900 @color/system_primary_100 - @color/system_primary_900 - @color/system_primary_50 - @color/system_primary_700 - @color/system_primary_200 - @color/system_primary_500 - @color/system_primary_400 + @color/text_color_primary_device_default_light @color/text_color_primary_device_default_dark