From a8b9c805a2f46bdfedb0c45d6ec5bc660c5d8172 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 Test: Manual testing Change-Id: If107452b942e23dee17c73873f4aedc3a25c7f5d --- 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 610b79f1e13..a9236e6ad10 100644 --- a/res/layout/preference_labeled_slider.xml +++ b/res/layout/preference_labeled_slider.xml @@ -67,6 +67,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"/> @@ -75,6 +77,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"/>