fix(slint): favorite state on album cards + un-favorite in place

AlbumCardItem gains is-favorite (filled accent heart on the card +
"Remove from favorites" in the list-row menu) — favorites albums set it
true so the heart shows its state, which it never did before.

Un-favoriting from the favorites list (track heart or album card heart)
now removes the item: the row/card fades out (new `removing` field drives
a 250ms opacity animation on TrackRow / AlbumCard / AlbumListRow), the
favorite is removed on the server (+ fav_cache for tracks), and the row
is dropped from both the full and visible models after the fade. All
TrackItem / AlbumCardItem initializers carry the new fields.

cc
This commit is contained in:
vicrodh committed 2026-05-27 06:56:26 -06:00
1 parent 57bace3e1d
commit 66a9f9da22
14 files changed
+178 -6

No files matched your search

+1
View File
@@ -381,6 +381,7 @@ fn to_item(track: &Track) -> TrackItem {
.map(|a| a.id.clone())
.unwrap_or_default()
.into(),
removing: false,
}
}