gui: Port to Blueprint
This was mostly done with `blueprint-compiler port`. Since Blueprint doesn't know about custom templates, I had to manually change some values from strings to literals. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/567>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
Adw.ActionRow row {
|
||||
use-markup: false;
|
||||
activatable: true;
|
||||
|
||||
[prefix]
|
||||
Image icon {
|
||||
pixel-size: 24;
|
||||
accessible-role: presentation;
|
||||
|
||||
styles [
|
||||
"calendar-color-image",
|
||||
]
|
||||
}
|
||||
|
||||
[suffix]
|
||||
Image read_only_icon {
|
||||
tooltip-text: _("Read-Only Calendar");
|
||||
icon-name: "changes-prevent-symbolic";
|
||||
pixel-size: 20;
|
||||
valign: center;
|
||||
}
|
||||
|
||||
[suffix]
|
||||
Switch switch {
|
||||
valign: center;
|
||||
tooltip-text: _("Display Calendar");
|
||||
}
|
||||
|
||||
[suffix]
|
||||
Image {
|
||||
halign: end;
|
||||
valign: center;
|
||||
icon-name: "go-next-symbolic";
|
||||
|
||||
accessibility {
|
||||
label: _("Edit calendar");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user