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>
32 lines
537 B
Plaintext
32 lines
537 B
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $GcalSyncIndicator: Adw.Bin {
|
|
child: Stack stack {
|
|
transition-type: crossfade;
|
|
transition-duration: 250;
|
|
|
|
StackPage {
|
|
name: "empty";
|
|
|
|
child: Box {};
|
|
}
|
|
|
|
StackPage {
|
|
name: "spinner";
|
|
|
|
child: Adw.Spinner refreshing_spinner {
|
|
tooltip-text: C_("tooltip", "Synchronizing Remote Calendars");
|
|
};
|
|
}
|
|
|
|
StackPage {
|
|
name: "success";
|
|
|
|
child: Image success_image {
|
|
icon-name: "checkmark-small-symbolic";
|
|
};
|
|
}
|
|
};
|
|
}
|