54 lines
908 B
Text
54 lines
908 B
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $AudreyUiAlbumCarouselAlbum: Adw.Bin {
|
|
child: Box {
|
|
styles [
|
|
"album"
|
|
]
|
|
|
|
orientation: vertical;
|
|
margin-bottom: 6;
|
|
spacing: 6;
|
|
|
|
Image {
|
|
paintable: bind template.cover_art;
|
|
pixel-size: 160;
|
|
halign: center;
|
|
hexpand: false;
|
|
}
|
|
|
|
Box {
|
|
styles [
|
|
"labels"
|
|
]
|
|
|
|
orientation: vertical;
|
|
homogeneous: true;
|
|
|
|
Label {
|
|
single-line-mode: true;
|
|
label: bind template.item as <$AudreyModelAlbum>.name;
|
|
ellipsize: end;
|
|
xalign: 0;
|
|
margin-start: 6;
|
|
|
|
styles [
|
|
"heading"
|
|
]
|
|
}
|
|
|
|
Label {
|
|
single-line-mode: true;
|
|
label: bind template.item as <$AudreyModelAlbum>.artist;
|
|
ellipsize: end;
|
|
xalign: 0;
|
|
margin-start: 6;
|
|
|
|
styles [
|
|
"caption"
|
|
]
|
|
}
|
|
}
|
|
};
|
|
}
|