mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Use blueprints directly
This commit is contained in:
parent
d0cf77888c
commit
e5bc2ede37
14 changed files with 7 additions and 35 deletions
39
data/ui/tile.blp
Normal file
39
data/ui/tile.blp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $MusicusTile : Gtk.FlowBoxChild {
|
||||
styles ["card", "activatable"]
|
||||
width-request: 200;
|
||||
|
||||
Gtk.Box {
|
||||
orientation: vertical;
|
||||
margin-start: 6;
|
||||
margin-end: 6;
|
||||
margin-top: 6;
|
||||
margin-bottom: 6;
|
||||
|
||||
Gtk.Label title_label {
|
||||
styles ["caption-heading"]
|
||||
halign: start;
|
||||
label: _("Title");
|
||||
}
|
||||
|
||||
Gtk.Label subtitle_label {
|
||||
styles ["caption"]
|
||||
halign: start;
|
||||
label: _("Subtitle");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
menu item_menu {
|
||||
item {
|
||||
label: _("_Play");
|
||||
}
|
||||
item {
|
||||
label: _("_Edit");
|
||||
}
|
||||
item {
|
||||
label: _("_Delete");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue