File: pps-loader-view.blp

package info (click to toggle)
papers 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,140 kB
  • sloc: ansic: 37,721; sh: 197; xml: 127; makefile: 112
file content (58 lines) | stat: -rw-r--r-- 1,125 bytes parent folder | download
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",
          ]
        }
      };
    }
  };
}