File: ErrorDialog.blp

package info (click to toggle)
deja-dup 49.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,464 kB
  • sloc: python: 1,215; sh: 164; xml: 49; makefile: 15
file content (59 lines) | stat: -rw-r--r-- 1,056 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
/* -*- Mode: Blueprint; indent-tabs-mode: nil; tab-width: 2 -*-
 *
 * SPDX-License-Identifier: CC-BY-SA-4.0
 * SPDX-FileCopyrightText: Michael Terry
 */

using Gtk 4.0;
using Adw 1;

template $ErrorDialog: Adw.Dialog {
  default-widget: button;
  focus-widget: button;

  styles [
    "background",
  ]

  child: Box {
    margin-bottom: 24;
    margin-end: 24;
    margin-start: 24;
    margin-top: 24;
    orientation: vertical;
    spacing: 12;

    Label heading_label {
      label: bind template.heading;
      max-width-chars: 15;
      wrap: true;

      styles [
        "title-2",
      ]
    }

    ScrolledWindow body_scroll {
      propagate-natural-height: true;
      propagate-natural-width: true;
      vexpand: true;

      child: Label {
        label: bind template.details;
        max-width-chars: 35;
        selectable: true;
        wrap: true;

        styles [
          "body",
        ]
      };
    }

    Button button {
      label: _("_Close");
      use-underline: true;
      clicked => $on_close_clicked();
    }
  };
}