File: pps-sidebar-annotations-row.blp

package info (click to toggle)
papers 49.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,332 kB
  • sloc: ansic: 37,722; sh: 197; xml: 127; makefile: 112
file content (65 lines) | stat: -rw-r--r-- 869 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
59
60
61
62
63
64
65
using Gtk 4.0;
using Adw 1;

template $PpsSidebarAnnotationsRow: Box {
  orientation: vertical;
  spacing: 6;

  Box {
    orientation: horizontal;
    spacing: 6;

    Label page_label {
      styles [
        "heading",
      ]

      hexpand: true;
      xalign: 0.0;
      ellipsize: end;
    }

    Image image {}

    Label author_label {
      styles [
        "caption",
      ]

      xalign: 0.0;
      ellipsize: middle;
    }
  }

  Box {
    orientation: horizontal;
    spacing: 6;

    Adw.Bin {
      vexpand: true;

      styles [
        "reference-bar",
      ]
    }

    Label reference_label {
      xalign: 0.0;
      lines: 3;
      wrap: true;
      ellipsize: end;
    }
  }

  Label content_label {
    styles [
      "annotation-content",
    ]

    xalign: 0.0;
    lines: 3;
    wrap: true;
    ellipsize: end;
    use-markup: true;
  }
}