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,31 @@
|
||||
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";
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user