<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <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="title-3"/>
            </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="dimmed"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkLabel" id="our_fingerprint_2">
            <style>
              <class name="monospace"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkImage" id="qr_code_image">
            <property name="halign">center</property>
            <property name="pixel-size">200</property>
          </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">Fingerprint for 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>
                <style>
                  <class name="boxed-list"/>
                </style>
                <child>
                  <object class="AdwActionRow" id="our_fingerprint_row">
                    <style>
                      <class name="crypto-device-row"/>
                    </style>
                    <child type="suffix">
                      <object class="GtkBox">
                        <property name="spacing">12</property>
                        <property name="hexpand-set">true</property>
                        <child>
                          <object class="GtkButton" id="copy_button">
                            <property name="focusable">1</property>
                            <property name="halign">end</property>
                            <property name="valign">center</property>
                            <property name="tooltip-text" translatable="yes">Copy to Clipboard</property>
                            <property name="icon-name">lucide-copy-symbolic</property>
                          </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">lucide-scan-qr-code-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">lucide-settings-symbolic</property>
                              </object>
                            </child>
                            <style>
                              <class name="image-button"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
              </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="GtkButton" id="remove_public_keys_button">
                    <property name="visible">0</property>
                    <property name="label" translatable="yes">Remove Public Keys…</property>
                    <property name="focusable">1</property>
                    <property name="halign">end</property>
                    <property name="hexpand">1</property>
                    <style>
                      <class name="destructive-action"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkListBox" id="list">
                <property name="margin-bottom">24</property>
                <property name="selection-mode">none</property>
                <style>
                  <class name="boxed-list"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="undecided_placeholder">
                <property name="margin-top">12</property>
                <property name="visible">0</property>
                <property name="label" translatable="yes">No undecided fingerprints</property>
                <style>
                  <class name="dimmed"/>
                </style>
              </object>
            </child>
          </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">You are offline</property>
                <property name="wrap">1</property>
                <property name="max-width-chars">42</property>
                <style>
                  <class name="dimmed"/>
                </style>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
  </object>
</interface>
