home: make fab size fixed

Make the shuffle FAB in the home UI a fixed size so that I don't have
to update padding based off of the screen config.
This commit is contained in:
OxygenCobalt 2021-11-02 19:39:40 -06:00
parent 2700a1d446
commit bb5d163f49
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
4 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View file

@ -142,7 +142,7 @@ class AlbumArtFetcher(private val context: Context) : Fetcher<Album> {
stream.use { stm ->
return SourceResult(
source = stm.source().buffer(),
mimeType = context.contentResolver.getType(songUri),
mimeType = null,
dataSource = DataSource.DISK
)
}

View file

@ -58,6 +58,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_shuffle"
app:fabSize="normal"
android:layout_margin="@dimen/spacing_medium"
android:contentDescription="@string/desc_shuffle_all"
app:tint="?attr/colorOnPrimaryContainer" />

View file

@ -36,8 +36,7 @@
<item name="android:scrollbars">none</item>
<!--
Temporary workaround where the material components text highlight colors are
hard-coded instead of following app colors
Work around hard-coded text highlight colors in the default Material3 theme
-->
<item name="android:textColorHighlight">@color/overlay_text_highlight</item>
<item name="android:textColorHighlightInverse">@color/overlay_text_highlight_inverse</item>