From 85f933f0563f7b61c3b98e624f3bf1a19d952161 Mon Sep 17 00:00:00 2001 From: Angela Wang Date: Tue, 26 Mar 2024 09:54:39 +0000 Subject: [PATCH] Fix button insufficient contrast ratio problem Apply textColorSecondary as the tint color for the arrow icon to prevent insufficient contrast ration problem under light theme. Bug: 331139289 Test: manually check the UI Change-Id: I010a6129cdd7bf11840421abc5f53156433b6708 --- res/layout/arrow_preference.xml | 56 -------------------------- res/layout/preference_widget_arrow.xml | 1 + 2 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 res/layout/arrow_preference.xml diff --git a/res/layout/arrow_preference.xml b/res/layout/arrow_preference.xml deleted file mode 100644 index 0924a4452b2..00000000000 --- a/res/layout/arrow_preference.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - diff --git a/res/layout/preference_widget_arrow.xml b/res/layout/preference_widget_arrow.xml index ddeb669142e..e7a3f8233a0 100644 --- a/res/layout/preference_widget_arrow.xml +++ b/res/layout/preference_widget_arrow.xml @@ -22,4 +22,5 @@ android:layout_gravity="center_vertical" android:contentDescription="@null" android:scaleType="center" + android:tint="?android:attr/textColorPrimary" android:src="@drawable/ic_arrow_forward" /> \ No newline at end of file