mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
metadata: tint library screens from the playing track
The library accent follows the playback artwork (LibraryRoute derives it from the current item), so pass the playing album instead of the first list entry, which made the tab bar disagree with the miniplayer. Inset the miniplayer progress bar when the tab bar is present, matching AppRoot.
This commit is contained in:
@@ -144,10 +144,10 @@ class DemoScreenshotTest {
|
||||
AlbumsScreen(
|
||||
demo.albums,
|
||||
demo.coverArt,
|
||||
demo.artwork(demo.albums.first().coverArt),
|
||||
demo.artwork(demo.nowPlayingAlbum.coverArt),
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
demo.MiniPlayerOverlay(demo.nowPlayingSong, demo.nowPlayingAlbum)
|
||||
demo.MiniPlayerOverlay(demo.nowPlayingSong, demo.nowPlayingAlbum, progressInset = true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,10 +195,10 @@ class DemoScreenshotTest {
|
||||
onPlaylistClick = {},
|
||||
onSync = {},
|
||||
onOpenSettings = {},
|
||||
artwork = demo.artwork(demo.artists.first().coverArt),
|
||||
artwork = demo.artwork(demo.nowPlayingAlbum.coverArt),
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
demo.MiniPlayerOverlay(demo.nowPlayingSong, demo.nowPlayingAlbum)
|
||||
demo.MiniPlayerOverlay(demo.nowPlayingSong, demo.nowPlayingAlbum, progressInset = true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ class DemoScreenshotTest {
|
||||
starredSupported = true,
|
||||
search = DEMO_SEARCH,
|
||||
onSearchChange = {},
|
||||
artwork = demo.artwork(demo.searchAlbums.first().coverArt),
|
||||
artwork = demo.artwork(demo.nowPlayingAlbum.coverArt),
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
demo.MiniPlayerOverlay(demo.nowPlayingSong, demo.nowPlayingAlbum)
|
||||
@@ -284,6 +284,7 @@ class DemoScreenshotTest {
|
||||
private fun DemoData.MiniPlayerOverlay(
|
||||
song: Song,
|
||||
album: Album,
|
||||
progressInset: Boolean = false,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
MiniPlayer(
|
||||
@@ -291,6 +292,7 @@ class DemoScreenshotTest {
|
||||
positionMs = positionFor(song),
|
||||
coverArt = coverArt(album.coverArt, true),
|
||||
artwork = artwork(album.coverArt),
|
||||
progressInset = progressInset,
|
||||
onExpand = {},
|
||||
onPlayPause = {},
|
||||
onNext = {},
|
||||
|
||||
Reference in New Issue
Block a user