<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkPopover" id="search_popover">
    <property name="child">
      <object class="GtkSearchEntry" id="search">
        <property name="focusable">1</property>
      </object>
    </property>
  </object>
  <object class="GtkPopover" id="qr_code_popover">
    <property name="child">
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <property name="spacing">12</property>
        <child>
          <object class="GtkLabel">
            <property name="label" translatable="yes">This Device</property>
            <style>
              <class name="bold16"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkLabel" id="comparing_instructions">
            <property name="margin-bottom">13</property>
            <property name="wrap">1</property>
            <property name="max-width-chars">42</property>
            <property name="xalign">0</property>
            <style>
              <class name="dim-label"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkLabel" id="our_fingerprint_2">
            <property name="focusable">1</property>
            <property name="selectable">1</property>
            <style>
              <class name="monospace"/>
              <class name="small-label"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkImage" id="qr_code_image">
            <property name="halign">center</property>
            <property name="pixel-size">200</property>
            <style>
              <class name="border"/>
            </style>
          </object>
        </child>
        <style>
          <class name="p-18"/>
        </style>
      </object>
    </property>
  </object>
  <object class="GtkStack" id="stack">
    <property name="width-request">400</property>
    <property name="hexpand">1</property>
    <property name="vexpand">1</property>
    <property name="transition-type">crossfade</property>
    <property name="interpolate-size">1</property>
    <child>
      <object class="GtkStackPage">
        <property name="name">manage-keys</property>
        <property name="child">
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <property name="spacing">12</property>
            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">This Device</property>
                <property name="xalign">0</property>
                <style>
                  <class name="bold"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkListBox">
                <property name="selection-mode">none</property>
                <child>
                  <object class="GtkListBoxRow">
                    <property name="focusable">1</property>
                    <property name="selectable">0</property>
                    <property name="child">
                      <object class="GtkBox">
                        <property name="spacing">12</property>
                        <child>
                          <object class="GtkBox">
                            <property name="orientation">vertical</property>
                            <property name="spacing">3</property>
                            <child>
                              <object class="GtkLabel">
                                <property name="label" translatable="yes">Fingerprint for this Device</property>
                                <property name="xalign">0</property>
                                <style>
                                  <class name="bold"/>
                                </style>
                              </object>
                            </child>
                            <child>
                              <object class="GtkLabel" id="our_fingerprint_1">
                                <property name="focusable">1</property>
                                <property name="selectable">1</property>
                                <property name="xalign">0</property>
                                <style>
                                  <class name="monospace"/>
                                  <class name="small-label"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="GtkMenuButton" id="qr_menu_button">
                            <property name="focusable">1</property>
                            <property name="receives-default">1</property>
                            <property name="tooltip-text" translatable="yes">Scan QR Code</property>
                            <property name="hexpand">1</property>
                            <property name="halign">end</property>
                            <property name="valign">center</property>
                            <property name="direction">up</property>
                            <property name="popover">qr_code_popover</property>
                            <child>
                              <object class="GtkImage">
                                <property name="icon-name">qr-code-scan-symbolic</property>
                              </object>
                            </child>
                            <style>
                              <class name="image-button"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton" id="manage_trust_button">
                            <property name="visible">0</property>
                            <property name="focusable">1</property>
                            <property name="receives-default">1</property>
                            <property name="tooltip-text" translatable="yes">Manage your Devices…</property>
                            <property name="valign">center</property>
                            <child>
                              <object class="GtkImage">
                                <property name="icon-name">preferences-system-symbolic</property>
                              </object>
                            </child>
                            <style>
                              <class name="image-button"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </property>
                  </object>
                </child>
                <style>
                  <class name="settings-box"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="list_heading">
                <property name="margin-top">12</property>
                <property name="wrap">1</property>
                <property name="max-width-chars">42</property>
                <property name="xalign">0</property>
                <style>
                  <class name="bold"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkBox" id="list_heading_box">
                <property name="spacing">12</property>
                <child>
                  <object class="GtkSwitch" id="show_inactive_switch">
                    <property name="focusable">1</property>
                    <property name="valign">center</property>

                  </object>
                </child>
                <child>
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">Show Inactive Devices</property>
                  </object>
                </child>
                <child>
                  <object class="GtkMenuButton" id="search_button">
                    <property name="visible">0</property>
                    <property name="focusable">1</property>
                    <property name="receives-default">1</property>
                    <property name="tooltip-text" translatable="yes">Search…</property>
                    <property name="halign">start</property>
                    <property name="valign">center</property>
                    <property name="popover">search_popover</property>
                    <child>
                      <object class="GtkImage">
                        <property name="icon-name">edit-find-symbolic</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkListBox" id="list">
                <property name="vexpand">1</property>
                <property name="selection-mode">none</property>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="clear_devices_button">
                <property name="visible">0</property>
                <property name="label" translatable="yes">Clear Devices…</property>
                <property name="focusable">1</property>
                <property name="receives-default">1</property>
                <property name="halign">start</property>

                <style>
                  <class name="destructive-action"/>
                </style>
              </object>
            </child>
            <style>
              <class name="omemo-trust-manager"/>
            </style>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">no-connection</property>
        <property name="child">
          <object class="GtkBox">
            <property name="halign">center</property>
            <property name="valign">center</property>
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">Account is not connected.</property>
                <property name="wrap">1</property>
                <property name="max-width-chars">42</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
  </object>
</interface>
