summaryrefslogtreecommitdiff
path: root/data/ui/contacts-qr-code-dialog.ui
blob: b55cdc73d9530cf265fccf567cc863df55354b04 (plain)
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
76
77
78
79
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="ContactsQrCodeDialog" parent="GtkWindow">
    <property name="default-width">400</property>
    <property name="default-height">550</property>
    <property name="height-request">550</property>
    <property name="modal">True</property>
    <property name="destroy-with-parent">True</property>
    <property name="title" translatable="yes">Share Contact</property>

    <child type="titlebar">
      <object class="GtkHeaderBar">
        <property name="show-title-buttons">True</property>
        <style>
          <class name="flat" />
        </style>
      </object>
    </child>

    <child>
      <object class="AdwClamp">

        <child>
          <object class="GtkBox">
            <property name="spacing">24</property>
            <property name="orientation">vertical</property>
            <property name="margin-top">32</property>
            <property name="margin-bottom">32</property>
            <property name="margin-start">32</property>
            <property name="margin-end">32</property>

            <child>
              <object class="GtkPicture" id="qr_image">
                <property name="halign">center</property>
                <property name="can-shrink">True</property>
                <property name="alternative-text" translatable="yes">QR Code</property>
                <style>
                  <class name="card"/>
                  <class name="contacts-qr-code-dialog-qr-image"/>
                </style>
              </object>
            </child>

            <child>
              <object class="GtkLabel" id="qr_title">
                <property name="label" translatable="yes">Scan to Save</property>
                <property name="css-classes">title-1</property>
              </object>
            </child>

            <child>
              <object class="GtkLabel" id="qr_subtitle">
                <property name="wrap">True</property>
                <property name="halign">center</property>
                <property name="justify">center</property>
                <property name="natural-wrap-mode">none</property>
              </object>
            </child>

          </object>
        </child>

        <child>
          <object class='GtkShortcutController'>
            <property name='scope'>global</property>
            <child>
              <object class='GtkShortcut'>
                <property name='trigger'>Escape</property>
                <property name='action'>action(window.close)</property>
              </object>
            </child>

          </object>
        </child>

      </object>
    </child>
  </template>
</interface>