mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add separate recording tile
This commit is contained in:
parent
a790d913af
commit
2143d6333b
11 changed files with 319 additions and 125 deletions
|
|
@ -20,4 +20,18 @@
|
|||
|
||||
.tile .subtitle {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.tile .work {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.tile .composer {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.tile .performances {
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
font-size: smaller;
|
||||
}
|
||||
39
data/ui/recording_tile.blp
Normal file
39
data/ui/recording_tile.blp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $MusicusRecordingTile : Gtk.FlowBoxChild {
|
||||
styles ["card", "activatable", "tile"]
|
||||
|
||||
Gtk.Box {
|
||||
spacing: 12;
|
||||
|
||||
Gtk.Image {
|
||||
icon-name: "media-playback-start-symbolic";
|
||||
valign: start;
|
||||
margin-top: 12;
|
||||
}
|
||||
|
||||
Gtk.Box {
|
||||
orientation: vertical;
|
||||
hexpand: true;
|
||||
|
||||
Gtk.Label work_label {
|
||||
styles ["work"]
|
||||
halign: start;
|
||||
wrap: true;
|
||||
}
|
||||
|
||||
Gtk.Label composer_label {
|
||||
styles ["composer"]
|
||||
halign: start;
|
||||
wrap: true;
|
||||
}
|
||||
|
||||
Gtk.Label performances_label {
|
||||
styles ["performances", "dim-label"]
|
||||
halign: start;
|
||||
wrap: true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $MusicusTile : Gtk.FlowBoxChild {
|
||||
template $MusicusTagTile : Gtk.FlowBoxChild {
|
||||
styles ["card", "activatable", "tile"]
|
||||
|
||||
Gtk.Box {
|
||||
|
|
@ -11,26 +11,16 @@ template $MusicusTile : Gtk.FlowBoxChild {
|
|||
Gtk.Label title_label {
|
||||
styles ["title"]
|
||||
halign: start;
|
||||
label: _("Title");
|
||||
lines: 1;
|
||||
ellipsize: end;
|
||||
}
|
||||
|
||||
Gtk.Label subtitle_label {
|
||||
visible: false;
|
||||
styles ["subtitle", "dim-label"]
|
||||
halign: start;
|
||||
label: _("Subtitle");
|
||||
lines: 1;
|
||||
ellipsize: end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
menu item_menu {
|
||||
item {
|
||||
label: _("_Play");
|
||||
}
|
||||
item {
|
||||
label: _("_Edit");
|
||||
}
|
||||
item {
|
||||
label: _("_Delete");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue