mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
31 lines
578 B
Text
31 lines
578 B
Text
|
|
using Gtk 4.0;
|
||
|
|
using Adw 1;
|
||
|
|
|
||
|
|
template $MusicusSearchEntry : Gtk.Box {
|
||
|
|
styles ["searchbar"]
|
||
|
|
|
||
|
|
margin-start: 12;
|
||
|
|
margin-end: 12;
|
||
|
|
margin-top: 6;
|
||
|
|
margin-bottom: 6;
|
||
|
|
|
||
|
|
Gtk.Image {
|
||
|
|
icon-name: "system-search-symbolic";
|
||
|
|
}
|
||
|
|
|
||
|
|
Gtk.Box tags_box {
|
||
|
|
valign: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
Gtk.Text text {
|
||
|
|
placeholder-text: _("Enter composers, performers, works…");
|
||
|
|
hexpand: true;
|
||
|
|
activate => $activate() swapped;
|
||
|
|
backspace => $backspace() swapped;
|
||
|
|
}
|
||
|
|
|
||
|
|
Gtk.Image clear_icon {
|
||
|
|
icon-name: "edit-clear-symbolic";
|
||
|
|
tooltip-text: _("Clear entry");
|
||
|
|
}
|
||
|
|
}
|