aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/data/encryption_preferences_entry.ui
blob: 7ca26224f21191121ab8770ae55a63c1e9d1fb6b (plain) (blame)
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
80
81
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="DinoPluginsOmemoOmemoPreferencesWidget">
    <child>
      <object class="AdwPreferencesGroup" id="keys_preferences_group">
        <property name="title">OMEMO</property>
        <property name="description">Each device has its own OMEMO key. Messages can only be decrypted by a device if they are encrypted to its key. Messages are only encrypted to accepted devices.</property>
        <property name="margin-bottom">12</property>
      </object>
    </child>
    <child>
      <object class="AdwPreferencesGroup">
        <child>
          <object class="AdwActionRow" id="encrypt_by_default_row">
            <child type="suffix">
              <object class="GtkSwitch" id="encrypt_by_default_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwActionRow" id="automatically_accept_new_row">
            <child type="suffix">
              <object class="GtkSwitch" id="automatically_accept_new_switch">
                <property name="valign">center</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkBox" id="new_keys_container">
        <property name="visible">0</property>
        <property name="orientation">vertical</property>
        <property name="spacing">2</property>
        <child>
          <object class="GtkLabel" id="new_keys_label">
            <property name="halign">start</property>
            <attributes>
              <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute>
            </attributes>
          </object>
        </child>
        <child>
          <object class="GtkFrame">
            <property name="child">
              <object class="GtkScrolledWindow">
                <property name="hscrollbar_policy">never</property>
                <property name="propagate_natural_height">1</property>
                <property name="child">
                  <object class="GtkListBox" id="new_keys_listbox">
                    <property name="selection-mode">none</property>
                  </object>
                </property>
              </object>
            </property>
          </object>
        </child>
      </object>
    </child>
  </template>
  <object class="GtkPopover" id="qrcode_popover">
    <property name="position">left</property>
    <property name="child">
      <object class="GtkBox">
        <property name="margin-start">10</property>
        <property name="margin-end">10</property>
        <property name="margin-top">10</property>
        <property name="margin-bottom">10</property>
        <child>
          <object class="GtkPicture" id="qrcode_picture">
            <property name="can-shrink">False</property>
          </object>
        </child>
      </object>
    </property>
  </object>
</interface>