From 70a63abfe4d2e1cdc05c4cd02529e0548f29cc7f Mon Sep 17 00:00:00 2001 From: menghanli Date: Thu, 4 Aug 2022 11:50:06 +0800 Subject: [PATCH] Fix insufficient contrast for the strings "Dimmer" and "Brighter" in the light theme Apply same the sub text style from seekbar preference Bug: 219752953 Bug: 229722937 Bug: 245093240 Fix: 245093240 Test: Manual testing Change-Id: If107452b942e23dee17c73873f4aedc3a25c7f5d (cherry picked from commit a8b9c805a2f46bdfedb0c45d6ec5bc660c5d8172) --- res/layout/preference_labeled_slider.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/res/layout/preference_labeled_slider.xml b/res/layout/preference_labeled_slider.xml index a11d574b319..ae7027defe8 100644 --- a/res/layout/preference_labeled_slider.xml +++ b/res/layout/preference_labeled_slider.xml @@ -69,6 +69,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="start|top" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" android:gravity="start" android:layout_weight="1"/> @@ -77,6 +79,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="end|top" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" android:gravity="end" android:layout_weight="1"/>