From d5c0ccfce0131e7f96e59960b408b60901030b59 Mon Sep 17 00:00:00 2001 From: OxygenCobalt Date: Thu, 23 Jun 2022 11:15:41 -0600 Subject: [PATCH] ui: remove titlemidlarge style Remove the TitleMidLarge style, replacing it with more Material3 attributes. This finally removes all of the non-standard text styles. There is still the two TitleMedium styles, but this is considered okay. In the playback view, TitleMidLarge has become TitleLarge, which honestly works quite well, as the same text styles are used in the detail views. --- .../org/oxycblt/auxio/image/BaseFetcher.kt | 2 +- .../layout-sw600dp/view_playback_controls.xml | 80 ------------------- .../res/layout/view_playback_controls.xml | 79 ------------------ app/src/main/res/values/styles_android.xml | 5 +- app/src/main/res/values/styles_ui.xml | 2 +- app/src/main/res/values/typography.xml | 31 +++---- 6 files changed, 14 insertions(+), 185 deletions(-) delete mode 100644 app/src/main/res/layout-sw600dp/view_playback_controls.xml delete mode 100644 app/src/main/res/layout/view_playback_controls.xml diff --git a/app/src/main/java/org/oxycblt/auxio/image/BaseFetcher.kt b/app/src/main/java/org/oxycblt/auxio/image/BaseFetcher.kt index 0eb2896f0..30490afdc 100644 --- a/app/src/main/java/org/oxycblt/auxio/image/BaseFetcher.kt +++ b/app/src/main/java/org/oxycblt/auxio/image/BaseFetcher.kt @@ -62,7 +62,7 @@ abstract class BaseFetcher : Fetcher { */ protected suspend fun fetchArt(context: Context, album: Album): InputStream? { val settings = Settings(context) - + if (!settings.showCovers) { return null } diff --git a/app/src/main/res/layout-sw600dp/view_playback_controls.xml b/app/src/main/res/layout-sw600dp/view_playback_controls.xml deleted file mode 100644 index a3d219694..000000000 --- a/app/src/main/res/layout-sw600dp/view_playback_controls.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - -