56 lines
971 B
Text
56 lines
971 B
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $AudreyUiAlbumCarouselAlbum: Adw.Bin {
|
|
child: Box {
|
|
styles [
|
|
"album"
|
|
]
|
|
|
|
orientation: vertical;
|
|
margin-bottom: 6;
|
|
spacing: 6;
|
|
|
|
AspectFrame {
|
|
child: Picture {
|
|
paintable: bind template.cover_art;
|
|
height-request: 160;
|
|
width-request: 160;
|
|
content-fit: scale_down;
|
|
};
|
|
}
|
|
|
|
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"
|
|
]
|
|
}
|
|
}
|
|
};
|
|
}
|