feat(library): add source badge to album cards in Local Library
Albums now show a small badge indicating their source: - HardDrive icon for local files (source='user') - Qobuz logo for offline cached content (source='qobuz_download') Badge appears in bottom-right corner of album artwork.
This commit is contained in:
1 parent
e025882a9f
commit
e8f0c96ccc
7 files changed
+820
-6
No files matched your search
@@ -136,6 +136,13 @@ pub struct LocalAlbum {
|
||||
pub bit_depth: Option<u32>,
|
||||
pub sample_rate: f64, // Changed from u32 to f64 for decimal precision
|
||||
pub directory_path: String,
|
||||
/// Source of the album: "user" for local files, "qobuz_download" for offline cached
|
||||
#[serde(default = "default_source")]
|
||||
pub source: String,
|
||||
}
|
||||
|
||||
fn default_source() -> String {
|
||||
"user".to_string()
|
||||
}
|
||||
|
||||
/// An artist aggregated from local tracks
|
||||
|
||||
Reference in new issue
Block a user