audrey/resources/album_carousel.blp

91 lines
1.4 KiB
Text

using Gtk 4.0;
using Adw 1;
template $AudreyUiAlbumCarousel: Adw.Bin {
styles [
"album-carousel"
]
child: Box {
orientation: vertical;
Box {
margin-start: 12;
spacing: 6;
height-request: 42;
Label {
single-line-mode: true;
label: bind template.title;
styles [
"title-2"
]
}
Button {
valign: center;
icon-name: "view-refresh-symbolic";
styles [
"circular",
"flat"
]
}
Box {
halign: end;
hexpand: true;
valign: center;
Button {
icon-name: "go-previous-symbolic";
styles [
"flat"
]
}
Button {
icon-name: "go-next-symbolic";
styles [
"flat"
]
}
}
}
Separator {
styles [
"spacer"
]
}
ScrolledWindow {
hexpand: true;
vscrollbar-policy: never;
hscrollbar-policy: external;
child: ListView {
orientation: horizontal;
styles [
"albums"
]
single-click-activate: true;
model: NoSelection {
model: bind template.model;
};
factory: SignalListItemFactory {
setup => $on_setup() swapped;
bind => $on_bind() swapped;
unbind => $on_unbind() swapped;
};
};
}
};
}