From f4217a337a2ee05151ef047776d8f892dd04612d Mon Sep 17 00:00:00 2001 From: OxygenCobalt Date: Tue, 8 Feb 2022 06:23:43 -0700 Subject: [PATCH] style: tweak body typography Apply body typography in new places in the app. For awhile, Body and Title typography were used interchangeably, as they occupy the same text size range. This commit defines the Body text as to be used for one-line widgets or tertiary widgets, while the Title text is defined to be used for multi-line or heading widgets. --- app/src/main/res/layout/fragment_search.xml | 3 +- app/src/main/res/layout/item_album_song.xml | 2 +- app/src/main/res/layout/item_artist_song.xml | 2 +- app/src/main/res/layout/item_excluded_dir.xml | 1 + app/src/main/res/layout/item_genre_song.xml | 2 +- app/src/main/res/values/styles_ui.xml | 5 ++ app/src/main/res/values/typography.xml | 53 +++++++++++++------ 7 files changed, 47 insertions(+), 21 deletions(-) diff --git a/app/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml index 716fe376d..4cf5d42cc 100644 --- a/app/src/main/res/layout/fragment_search.xml +++ b/app/src/main/res/layout/fragment_search.xml @@ -40,8 +40,7 @@ android:imeOptions="actionSearch|flagNoExtractUi" android:inputType="textFilter" android:paddingStart="0dp" - android:paddingEnd="0dp" - android:textAppearance="@style/TextAppearance.Auxio.TitleMedium" /> + android:paddingEnd="0dp" /> diff --git a/app/src/main/res/layout/item_album_song.xml b/app/src/main/res/layout/item_album_song.xml index 5be733658..7dd52f238 100644 --- a/app/src/main/res/layout/item_album_song.xml +++ b/app/src/main/res/layout/item_album_song.xml @@ -38,7 +38,7 @@ android:minWidth="@dimen/size_track_number" android:text="@{@string/fmt_track(song.track)}" android:textAlignment="center" - android:textAppearance="@style/TextAppearance.Auxio.TitleMedium" + android:textAppearance="@style/TextAppearance.Auxio.BodyLarge" android:textColor="@color/sel_accented_secondary" android:textSize="@dimen/text_size_ext_title_mid_larger" app:layout_constraintBottom_toBottomOf="parent" diff --git a/app/src/main/res/layout/item_artist_song.xml b/app/src/main/res/layout/item_artist_song.xml index ec7a92ed6..a014af1bd 100644 --- a/app/src/main/res/layout/item_artist_song.xml +++ b/app/src/main/res/layout/item_artist_song.xml @@ -53,7 +53,7 @@ ?android:attr/textColorSecondary + + + + + + + + + - + + - - - - \ No newline at end of file