From 5882fa4827098625b5db57bb609f5503edc0948f Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 26 Jul 2021 03:59:45 +0200 Subject: [PATCH] Tweak default font sizes --- .../src/main/res/layout/accounts_item.xml | 4 ++-- .../src/main/res/layout/message_list_item.xml | 7 ++++--- .../main/res/layout/message_view_header.xml | 20 +++++++++--------- app/ui/legacy/src/main/res/values/styles.xml | 21 +++++++++++++++++++ .../k9/fragment/MessageListAdapterTest.kt | 2 +- 5 files changed, 38 insertions(+), 16 deletions(-) diff --git a/app/ui/legacy/src/main/res/layout/accounts_item.xml b/app/ui/legacy/src/main/res/layout/accounts_item.xml index 0a216c1a7..b4d7cee12 100644 --- a/app/ui/legacy/src/main/res/layout/accounts_item.xml +++ b/app/ui/legacy/src/main/res/layout/accounts_item.xml @@ -33,7 +33,7 @@ android:singleLine="true" android:ellipsize="end" android:textColor="?android:attr/textColorPrimary" - android:textAppearance="?android:attr/textAppearanceMedium"/> + android:textAppearance="@style/TextAppearance.K9.Medium"/> + android:textAppearance="@style/TextAppearance.K9.Small"/> diff --git a/app/ui/legacy/src/main/res/layout/message_list_item.xml b/app/ui/legacy/src/main/res/layout/message_list_item.xml index d3fb198ee..b32226f48 100644 --- a/app/ui/legacy/src/main/res/layout/message_list_item.xml +++ b/app/ui/legacy/src/main/res/layout/message_list_item.xml @@ -58,7 +58,7 @@ android:bufferType="spannable" android:layout_below="@+id/subject_wrapper" android:singleLine="false" - android:textAppearance="?android:attr/textAppearanceSmall" + android:textAppearance="@style/TextAppearance.K9.Small" android:textColor="?android:attr/textColorPrimary" android:longClickable="false" android:layout_alignWithParentIfMissing="false" @@ -97,12 +97,13 @@ android:layout_marginLeft="1dip" android:ellipsize="marquee" android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceMedium" + android:textAppearance="@style/TextAppearance.K9.MediumSmall" android:textColor="?android:attr/textColorPrimary" /> @@ -136,7 +136,7 @@ android:singleLine="true" android:ellipsize="end" android:textColor="?android:attr/textColorPrimary" - android:textAppearance="?android:attr/textAppearanceMedium" + android:textAppearance="@style/TextAppearance.K9.MediumSmall" android:textStyle="bold" android:text="@string/general_no_sender" android:gravity="center_vertical" @@ -153,7 +153,7 @@ android:layout_below="@+id/from" android:ellipsize="end" android:textColor="?android:attr/textColorPrimary" - android:textAppearance="?android:attr/textAppearanceSmall" + android:textAppearance="@style/TextAppearance.K9.Small" android:textStyle="bold" android:visibility="gone" android:gravity="center_vertical" @@ -170,7 +170,7 @@ android:paddingRight="4dp" android:text="@string/message_to_label" android:textColor="?android:attr/textColorPrimary" - android:textAppearance="@android:style/TextAppearance.Medium" + android:textAppearance="@style/TextAppearance.K9.MediumSmall" android:textStyle="bold" /> + android:textAppearance="@style/TextAppearance.K9.MediumSmall" /> + android:textAppearance="@style/TextAppearance.K9.MediumSmall" /> + android:textAppearance="@style/TextAppearance.K9.MediumSmall" /> + android:textAppearance="@style/TextAppearance.K9.MediumSmall" /> + android:textAppearance="@style/TextAppearance.K9.MediumSmall" /> ?android:textColorPrimary ?android:textColorSecondary + + + + + + + + + + + diff --git a/app/ui/legacy/src/test/java/com/fsck/k9/fragment/MessageListAdapterTest.kt b/app/ui/legacy/src/test/java/com/fsck/k9/fragment/MessageListAdapterTest.kt index d985d86a3..cb18a576a 100644 --- a/app/ui/legacy/src/test/java/com/fsck/k9/fragment/MessageListAdapterTest.kt +++ b/app/ui/legacy/src/test/java/com/fsck/k9/fragment/MessageListAdapterTest.kt @@ -35,7 +35,7 @@ import org.mockito.kotlin.mock import org.robolectric.Robolectric private const val SOME_ACCOUNT_UUID = "6b84207b-25de-4dab-97c3-953bbf03fec6" -private const val FIRST_LINE_DEFAULT_FONT_SIZE = 18f +private const val FIRST_LINE_DEFAULT_FONT_SIZE = 16f private const val SECOND_LINE_DEFAULT_FONT_SIZE = 14f private const val DATE_DEFAULT_FONT_SIZE = 14f