musicus/data/ui/album_page.blp

112 lines
2.2 KiB
Text

using Gtk 4.0;
using Adw 1;
template $MusicusAlbumPage: Adw.NavigationPage {
title: _("Album");
Adw.ToolbarView {
[top]
Adw.HeaderBar {
show-title: false;
}
Gtk.ScrolledWindow {
Adw.Clamp {
Gtk.Box {
orientation: vertical;
margin-bottom: 24;
margin-start: 12;
margin-end: 12;
Gtk.Box {
spacing: 12;
margin-top: 24;
Gtk.Box {
orientation: vertical;
hexpand: true;
valign: center;
Gtk.Label title_label {
wrap: true;
xalign: 0.0;
styles [
"title-1",
]
}
Gtk.Label subtitle_label {
wrap: true;
xalign: 0.0;
}
}
Gtk.MenuButton {
icon-name: "view-more-symbolic";
menu-model: album_menu;
valign: center;
styles [
"flat",
]
}
Gtk.Button {
label: _("_Play");
tooltip-text: _("Play this album");
use-underline: true;
valign: center;
clicked => $play_button_clicked() swapped;
styles [
"pill",
"suggested-action",
]
}
}
Gtk.Label {
label: _("Recordings");
xalign: 0;
margin-top: 24;
styles [
"heading",
]
}
Gtk.FlowBox recordings_flow_box {
margin-top: 12;
column-spacing: 12;
row-spacing: 12;
homogeneous: true;
selection-mode: none;
child-activated => $recording_selected() swapped;
}
}
}
}
}
}
menu album_menu {
section {
item {
label: _("_Add to playlist");
action: "album.add-to-playlist";
}
}
section {
item {
label: _("_Edit item");
action: "album.edit";
}
item {
label: _("_Delete item");
action: "album.delete";
}
}
}