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:
14 files changed
+178
-6
No files matched your search
@@ -381,6 +381,7 @@ fn to_item(track: &Track) -> TrackItem {
|
||||
.map(|a| a.id.clone())
|
||||
.unwrap_or_default()
|
||||
.into(),
|
||||
removing: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user