updates
This commit is contained in:
parent
2ce32cac4e
commit
b6639fb1c9
26 changed files with 454 additions and 204 deletions
|
|
@ -349,7 +349,9 @@ final visibleTracksProvider = Provider<List<Song>>((ref) {
|
|||
final filter = ref.watch(trackFilterProvider);
|
||||
final sort = ref.watch(settingsProvider.select((s) => s.trackSort));
|
||||
final songs = ref.watch(libraryIndexProvider).songs;
|
||||
return applyTrackQuery(songs, filter, sort);
|
||||
// Live ratings so the Rating sort/filter reacts to star changes immediately.
|
||||
final ratings = ref.watch(favoritesProvider).ratings;
|
||||
return applyTrackQuery(songs, filter, sort, ratings: ratings);
|
||||
});
|
||||
|
||||
/// Recently-added albums (`getAlbumList2` type `newest`) — a discovery shelf on
|
||||
|
|
@ -564,8 +566,9 @@ final playbackProvider =
|
|||
coverArtUriFor: coverArtUriFor,
|
||||
serverKeyGetter: () => ref.read(serverKeyProvider),
|
||||
onArt: (artUri) async {
|
||||
// Skip extraction entirely when the user has pinned a static accent.
|
||||
if (ref.read(settingsProvider).useStaticAccent) return;
|
||||
// Skip extraction entirely when the accent is pinned (static accent, or a
|
||||
// theme that locks its accent like Lavender).
|
||||
if (ref.read(settingsProvider).accentIsFixed) return;
|
||||
final color = await extractAccent(NetworkImage(artUri.toString()));
|
||||
if (color != null) ref.read(accentProvider.notifier).set(color);
|
||||
},
|
||||
|
|
@ -610,7 +613,7 @@ final remoteAccentSyncProvider = Provider<void>((ref) {
|
|||
(s) => s.isAttached ? s.remoteState?.current?.coverArt : null,
|
||||
),
|
||||
(prev, coverArt) async {
|
||||
if (ref.read(settingsProvider).useStaticAccent) return;
|
||||
if (ref.read(settingsProvider).accentIsFixed) return;
|
||||
if (coverArt == null) return;
|
||||
final client = ref.read(subsonicClientProvider);
|
||||
if (client == null) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue