1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
using Gtk 4.0;
using Adw 1;
template $PpsLoaderView: Adw.Bin {
child: Adw.ToolbarView {
[top]
Adw.HeaderBar {
[title]
Adw.WindowTitle {
title: _("Document Viewer");
}
}
Adw.StatusPage {
title: _("Loading Document");
description: bind template.uri;
child: Box {
orientation: vertical;
spacing: 24;
Adw.Clamp {
child: Stack stack {
StackPage {
name: "spinner";
child: Adw.Spinner spinner {
width-request: 64;
height-request: 64;
};
}
StackPage {
name: "bar";
child: ProgressBar progress_bar {
show-text: true;
width-request: 250;
halign: center;
};
}
};
}
Button {
halign: center;
use-underline: true;
label: _("C_ancel");
clicked => $cancel_clicked() swapped;
styles [
"pill",
]
}
};
}
};
}
|