From 263d1e2c82b1a23a8e7c02c2bc6f2ef2bc06f568 Mon Sep 17 00:00:00 2001 From: Jason Chiu Date: Wed, 2 Jun 2021 18:14:20 +0800 Subject: [PATCH] Revise homepage colors - Increase the contrast ratio of the search bar - Adjust the color of IA icons Test: visual Fixes: 179632631 Change-Id: I9b4fc4d671183929d4b2fed27cba8600d56cc74c --- res/values-night/colors.xml | 4 +++- res/values/colors.xml | 2 +- res/values/styles.xml | 7 ++++--- src/com/android/settings/Utils.java | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml index faf7962ee59..979791e9379 100644 --- a/res/values-night/colors.xml +++ b/res/values-night/colors.xml @@ -14,13 +14,15 @@ limitations under the License. --> - + #82000000 @android:color/black #783BE5 #3F5FBD @*android:color/material_grey_900 @*android:color/material_grey_900 + ?androidprv:attr/colorSurfaceVariant @*android:color/material_grey_800 #AECBFA #5F6368 diff --git a/res/values/colors.xml b/res/values/colors.xml index bd41f1ef08e..d2c6842ba97 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -145,7 +145,7 @@ - ?androidprv:attr/colorSurface + ?androidprv:attr/colorSurfaceHighlight #ffdadce0 diff --git a/res/values/styles.xml b/res/values/styles.xml index 2a13b32e1e2..5fa2f566bdc 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -308,10 +308,11 @@ ?android:attr/textColorPrimary - diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java index 6d4ea264dc5..20ab8065f98 100644 --- a/src/com/android/settings/Utils.java +++ b/src/com/android/settings/Utils.java @@ -1220,7 +1220,7 @@ public final class Utils extends com.android.settingslib.Utils { */ @ColorInt public static int getHomepageIconColor(Context context) { - return getColorAttrDefaultColor(context, android.R.attr.textColorPrimary); + return getColorAttrDefaultColor(context, android.R.attr.textColorSecondary); } public static boolean isProviderModelEnabled(Context context) {