From 31aabd98516a4cc522f9101f68117a8fdb6ad9c1 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Fri, 22 Oct 2021 12:30:53 -0400 Subject: [PATCH] Fix unread count font scaling. --- .../res/drawable/unread_count_background_new.xml | 1 - .../main/res/layout/conversation_list_item_view.xml | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/main/res/drawable/unread_count_background_new.xml b/app/src/main/res/drawable/unread_count_background_new.xml index 116fdefd7..cef1c8f6b 100644 --- a/app/src/main/res/drawable/unread_count_background_new.xml +++ b/app/src/main/res/drawable/unread_count_background_new.xml @@ -4,6 +4,5 @@ android:shape="rectangle"> - \ No newline at end of file diff --git a/app/src/main/res/layout/conversation_list_item_view.xml b/app/src/main/res/layout/conversation_list_item_view.xml index 615aeb6f5..d6f3a3a70 100644 --- a/app/src/main/res/layout/conversation_list_item_view.xml +++ b/app/src/main/res/layout/conversation_list_item_view.xml @@ -146,16 +146,16 @@ android:id="@+id/conversation_list_item_unread_indicator" style="@style/Signal.Text.Caption" android:layout_width="wrap_content" - android:layout_height="@dimen/unread_count_bubble_diameter" + android:layout_height="wrap_content" android:layout_marginStart="12dp" + android:minWidth="18dp" android:background="@drawable/unread_count_background_new" android:fontFamily="sans-serif-medium" - android:gravity="center" android:includeFontPadding="false" - android:minWidth="@dimen/unread_count_bubble_diameter" - android:minHeight="@dimen/unread_count_bubble_diameter" - android:paddingStart="5dp" - android:paddingEnd="5dp" + android:paddingStart="6dp" + android:paddingEnd="6dp" + android:paddingTop="2dp" + android:paddingBottom="2dp" android:textColor="@color/core_white" tools:text="99+" />