audrey/resources/album_carousel_album.blp

54 lines
903 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 {
icon-name: "media-optical-cd";
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"
]
}
}
};
}