mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Improve tile widget
This commit is contained in:
parent
54f0088e61
commit
bcb4b84b19
3 changed files with 66 additions and 14 deletions
|
|
@ -2,24 +2,21 @@ using Gtk 4.0;
|
|||
using Adw 1;
|
||||
|
||||
template $MusicusTile : Gtk.FlowBoxChild {
|
||||
styles ["card", "activatable"]
|
||||
width-request: 200;
|
||||
styles ["card", "activatable", "tile"]
|
||||
|
||||
Gtk.Box {
|
||||
orientation: vertical;
|
||||
margin-start: 6;
|
||||
margin-end: 6;
|
||||
margin-top: 6;
|
||||
margin-bottom: 6;
|
||||
valign: center;
|
||||
|
||||
Gtk.Label title_label {
|
||||
styles ["caption-heading"]
|
||||
styles ["title"]
|
||||
halign: start;
|
||||
label: _("Title");
|
||||
}
|
||||
|
||||
Gtk.Label subtitle_label {
|
||||
styles ["caption"]
|
||||
visible: false;
|
||||
styles ["subtitle", "dim-label"]
|
||||
halign: start;
|
||||
label: _("Subtitle");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue