From 875b01d161f5783ac9fae69eeda2be002b6e8559 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Tue, 25 May 2021 15:55:07 -0700 Subject: [PATCH] Use new text color attr on widgets The new attr `textColorOnAccent` will work both on light and dark theme when the background it `colorAccentPrimary`. Test: make Fixes: 188881649 Change-Id: I54bc3e32a2d9b141bfe8521c656ba50c9957d26f --- .../SystemUI/res/layout/people_tile_large_with_content.xml | 3 ++- .../SystemUI/res/layout/people_tile_medium_with_content.xml | 3 ++- packages/SystemUI/res/layout/people_tile_small.xml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/SystemUI/res/layout/people_tile_large_with_content.xml b/packages/SystemUI/res/layout/people_tile_large_with_content.xml index e294dad6ce34c..b7e86a3b0b841 100644 --- a/packages/SystemUI/res/layout/people_tile_large_with_content.xml +++ b/packages/SystemUI/res/layout/people_tile_large_with_content.xml @@ -14,6 +14,7 @@ ~ limitations under the License. --> @@ -50,7 +51,7 @@ android:gravity="center" android:paddingHorizontal="8dp" android:textAppearance="@*android:style/TextAppearance.DeviceDefault.ListItem" - android:textColor="?android:attr/textColorPrimary" + android:textColor="?androidprv:attr/textColorOnAccent" android:background="@drawable/people_space_messages_count_background" android:textSize="@dimen/name_text_size_for_small" android:maxLines="1"