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:
parent
2700a1d446
commit
bb5d163f49
4 changed files with 3 additions and 3 deletions
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
|
@ -142,7 +142,7 @@ class AlbumArtFetcher(private val context: Context) : Fetcher<Album> {
|
||||||
stream.use { stm ->
|
stream.use { stm ->
|
||||||
return SourceResult(
|
return SourceResult(
|
||||||
source = stm.source().buffer(),
|
source = stm.source().buffer(),
|
||||||
mimeType = context.contentResolver.getType(songUri),
|
mimeType = null,
|
||||||
dataSource = DataSource.DISK
|
dataSource = DataSource.DISK
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_shuffle"
|
android:src="@drawable/ic_shuffle"
|
||||||
|
app:fabSize="normal"
|
||||||
android:layout_margin="@dimen/spacing_medium"
|
android:layout_margin="@dimen/spacing_medium"
|
||||||
android:contentDescription="@string/desc_shuffle_all"
|
android:contentDescription="@string/desc_shuffle_all"
|
||||||
app:tint="?attr/colorOnPrimaryContainer" />
|
app:tint="?attr/colorOnPrimaryContainer" />
|
||||||
|
|
|
@ -36,8 +36,7 @@
|
||||||
<item name="android:scrollbars">none</item>
|
<item name="android:scrollbars">none</item>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Temporary workaround where the material components text highlight colors are
|
Work around hard-coded text highlight colors in the default Material3 theme
|
||||||
hard-coded instead of following app colors
|
|
||||||
-->
|
-->
|
||||||
<item name="android:textColorHighlight">@color/overlay_text_highlight</item>
|
<item name="android:textColorHighlight">@color/overlay_text_highlight</item>
|
||||||
<item name="android:textColorHighlightInverse">@color/overlay_text_highlight_inverse</item>
|
<item name="android:textColorHighlightInverse">@color/overlay_text_highlight_inverse</item>
|
||||||
|
|
Loading…
Reference in a new issue