File: pps-progress-message-area.blp

package info (click to toggle)
papers 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 21,140 kB
  • sloc: ansic: 37,721; sh: 197; xml: 127; makefile: 112
file content (75 lines) | stat: -rw-r--r-- 1,482 bytes parent folder | download | duplicates (2)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using Gtk 4.0;
using Adw 1;

template $PpsProgressMessageArea: Adw.Bin {
  child: InfoBar info_bar {
    show-close-button: true;
    message-type: other;

    Box {
      orientation: vertical;
      spacing: 12;

      Box {
        orientation: horizontal;
        spacing: 12;

        Image image {
          pixel-size: 48;
          margin-top: 6;
          margin-bottom: 6;
          margin-start: 6;
          margin-end: 6;
        }

        Box {
          orientation: vertical;
          spacing: 12;
          hexpand: true;
          vexpand: false;
          halign: fill;

          Label label {
            use-markup: true;
            wrap: true;
            selectable: true;
            xalign: 0.0;
            yalign: 0.5;
            can-focus: true;
            vexpand: true;
          }

          Label secondary_label {
            use-markup: true;
            wrap: true;
            selectable: true;
            xalign: 0.0;
            yalign: 0.5;
            can-focus: true;
            visible: false;
          }
        }
      }

      Box {
        orientation: vertical;
        spacing: 6;

        Label progress_label {
          use-markup: true;
          ellipsize: end;
          xalign: 0.0;
          yalign: 0.5;
          valign: fill;
          vexpand: false;
        }

        ProgressBar progress_bar {
          width-request: -1;
          height-request: 15;
          vexpand: false;
        }
      }
    }
  };
}