<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkListStore" id="groups_model">
    <columns>
      <column type="gboolean"/>
      <column type="gchararray"/>
    </columns>
  </object>
  <object class="GtkStack" id="main_stack">
    <property name="vexpand">1</property>
    <property name="transition-type">crossfade</property>
    <property name="width-request">650</property>
    <style>
      <class name="mt-12"/>
    </style>
    <child>
      <object class="GtkStackPage">
        <property name="name">information</property>
        <property name="title" translatable="yes">Information</property>
        <property name="icon-name">lucide-user-symbolic</property>
        <property name="child">
          <object class="GtkScrolledWindow" id="vcard_scrolled">
            <property name="focusable">1</property>
            <property name="child">
              <object class="GtkViewport">
                <property name="child">
                  <object class="AdwClamp">
                    <child>
                      <object class="GtkBox">
                        <property name="orientation">vertical</property>
                        <property name="spacing">12</property>
                        <child>
                          <object class="GtkImage" id="avatar_image">
                            <property name="icon-name">lucide-image-off-symbolic</property>
                            <style>
                              <class name="m-18"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkBox" id="contact_name_controls_box">
                            <property name="halign">center</property>
                            <child>
                              <placeholder/>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="GtkLabel" id="contact_jid_label">
                            <property name="focusable">1</property>
                            <property name="margin-bottom">6</property>
                            <property name="selectable">1</property>
                            <property name="ellipsize">end</property>
                            <property name="single-line-mode">1</property>
                            <property name="max-width-chars">50</property>
                            <style>
                              <class name="dimmed"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="AdwPreferencesGroup" id="group_chat_info">
                            <property name="title" translatable="yes">In this group chat</property>
                            <property name="visible">0</property>
                            <child>
                              <object class="AdwActionRow" id="role_info">
                                <property name="title" translatable="yes">Role</property>
                                <style>
                                  <class name="property"/>
                                </style>
                              </object>
                            </child>
                            <child>
                              <object class="AdwActionRow" id="affiliation_info">
                                <property name="title" translatable="yes">Affiliation</property>
                                <style>
                                  <class name="property"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="GtkBox" id="vcard_box">
                            <property name="orientation">vertical</property>
                            <property name="spacing">18</property>
                            <property name="visible">0</property>
                            <style>
                              <class name="py-18"/>
                            </style>
                            <child>
                              <object class="GtkLabel">
                                <property name="label" translatable="yes">Contact Information</property>
                                <style>
                                  <class name="bold"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </property>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">settings</property>
        <property name="title" translatable="yes">Settings</property>
        <property name="icon-name">lucide-settings-symbolic</property>
        <property name="child">
          <object class="GtkScrolledWindow" id="settings_scrolled">
            <property name="focusable">1</property>
            <property name="hscrollbar-policy">never</property>
            <property name="child">
              <object class="GtkViewport">
                <property name="child">
                  <object class="AdwClamp">
                    <child>
                      <object class="GtkBox" id="settings_box">
                        <property name="orientation">vertical</property>
                        <property name="spacing">24</property>
                        <child>
                          <object class="GtkBox" id="subscription_box">
                            <property name="orientation">vertical</property>
                            <property name="spacing">12</property>
                            <child>
                              <object class="GtkLabel">
                                <property name="halign">start</property>
                                <property name="label" translatable="yes">Status</property>
                                <style>
                                  <class name="bold"/>
                                </style>
                              </object>
                            </child>
                            <child>
                              <object class="GtkListBox" id="subscription_listbox">
                                <property name="width-request">400</property>
                                <property name="selection-mode">none</property>
                                <style>
                                  <class name="boxed-list"/>
                                </style>
                                <child>
                                  <object class="AdwActionRow">
                                    <property name="activatable">0</property>
                                    <property name="title" translatable="yes">Share my online status</property>
                                    <child type="suffix">
                                      <object class="GtkSwitch" id="from_subscription_switch">
                                        <property name="focusable">1</property>
                                        <property name="valign">center</property>
                                      </object>
                                    </child>
                                  </object>
                                </child>
                                <child>
                                  <object class="AdwActionRow">
                                    <property name="activatable">0</property>
                                    <property name="title" translatable="yes">I can see contact&apos;s online status</property>
                                    <child type="suffix">
                                      <object class="GtkStack" id="to_subscription_stack">
                                        <property name="halign">end</property>
                                        <property name="valign">center</property>
                                        <property name="transition-type">crossfade</property>
                                        <child>
                                          <object class="GtkStackPage">
                                            <property name="name">request</property>
                                            <property name="child">
                                              <object class="GtkBox">
                                                <property name="halign">end</property>
                                                <property name="spacing">12</property>
                                                <child>
                                                  <object class="GtkStack" id="request_stack">
                                                    <property name="transition-type">crossfade</property>
                                                    <child>
                                                      <object class="GtkStackPage">
                                                        <property name="name">cross</property>
                                                        <property name="child">
                                                          <object class="GtkImage">
                                                            <property name="tooltip-text" translatable="yes">You cannot see this contact&apos;s online status</property>
                                                            <property name="halign">center</property>
                                                            <property name="icon-name">lucide-x-symbolic</property>
                                                          </object>
                                                        </property>
                                                      </object>
                                                    </child>
                                                    <child>
                                                      <object class="GtkStackPage">
                                                        <property name="name">requested</property>
                                                        <property name="child">
                                                          <object class="GtkImage">
                                                            <property name="tooltip-text" translatable="yes">You requested to see this contact&apos;s online status</property>
                                                            <property name="icon-name">lucide-circle-dashed-symbolic</property>
                                                          </object>
                                                        </property>
                                                      </object>
                                                    </child>
                                                  </object>
                                                </child>
                                                <child>
                                                  <object class="GtkButton" id="to_subscription_button">
                                                    <property name="label" translatable="yes">_Request</property>
                                                    <property name="focusable">1</property>
                                                    <property name="receives-default">1</property>
                                                    <property name="tooltip-text" translatable="yes">Request to see this contact&apos;s online status</property>
                                                    <property name="valign">center</property>
                                                    <property name="use-underline">1</property>
                                                  </object>
                                                </child>
                                              </object>
                                            </property>
                                          </object>
                                        </child>
                                        <child>
                                          <object class="GtkStackPage">
                                            <property name="name">checkmark</property>
                                            <property name="child">
                                              <object class="GtkImage">
                                                <property name="tooltip-text" translatable="yes">You can see the contact&apos;s online status</property>
                                                <property name="halign">end</property>
                                                <property name="icon-name">lucide-check-symbolic</property>
                                              </object>
                                            </property>
                                          </object>
                                        </child>
                                      </object>
                                    </child>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton" id="remove_history_button">
                            <property name="label" translatable="yes">Remove History…</property>
                            <property name="focusable">1</property>
                            <property name="halign">start</property>
                            <style>
                              <class name="destructive-action"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </property>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">encryption-omemo</property>
        <property name="title" translatable="yes">Encryption (OMEMO)</property>
        <property name="icon-name">lucide-lock-symbolic</property>
        <property name="child">
          <object class="GtkScrolledWindow" id="encryption_scrolled">
            <property name="focusable">1</property>
            <property name="hscrollbar-policy">never</property>
            <property name="child">
              <object class="GtkViewport">
                <property name="child">
                  <object class="AdwClamp" id="encryption_box">
                  </object>
                </property>
              </object>
            </property>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">groups</property>
        <property name="title" translatable="yes">Groups</property>
        <property name="icon-name">lucide-users-symbolic</property>
        <property name="child">
          <object class="GtkStack" id="groups_page_stack">
            <property name="transition-type">crossfade</property>
            <child>
              <object class="GtkStackPage">
                <property name="name">groups</property>
                <property name="child">
                  <object class="GtkBox">
                    <property name="margin-start">18</property>
                    <property name="margin-end">18</property>
                    <property name="margin-top">24</property>
                    <property name="margin-bottom">36</property>
                    <property name="orientation">vertical</property>
                    <property name="spacing">12</property>
                    <child>
                      <object class="GtkLabel">
                        <property name="label" translatable="yes">Assign groups to this contact. You can filter chats by group.</property>
                        <property name="wrap">1</property>
                        <style>
                          <class name="dimmed"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox">
                        <property name="width-request">400</property>
                        <property name="halign">center</property>
                        <property name="orientation">vertical</property>
                        <child>
                          <object class="GtkScrolledWindow">
                            <property name="height-request">250</property>
                            <property name="focusable">1</property>
                            <property name="vexpand">1</property>
                            <property name="has-frame">1</property>
                            <property name="child">
                              <object class="GtkViewport">
                                <property name="child">
                                  <object class="GtkTreeView" id="groups_treeview">
                                    <property name="focusable">1</property>
                                    <property name="model">groups_model</property>
                                    <property name="headers-visible">0</property>
                                    <child internal-child="selection">
                                      <object class="GtkTreeSelection" id="tree_selection"/>
                                    </child>
                                    <child>
                                      <object class="GtkTreeViewColumn">
                                        <child>
                                          <object class="GtkCellRendererToggle" id="toggle_renderer">
                                            <property name="xpad">12</property>
                                          </object>
                                          <attributes>
                                            <attribute name="active">0</attribute>
                                          </attributes>
                                        </child>
                                      </object>
                                    </child>
                                    <child>
                                      <object class="GtkTreeViewColumn">
                                        <property name="title" translatable="yes">column</property>
                                        <property name="sort-column-id">1</property>
                                        <child>
                                          <object class="GtkCellRendererText" id="text_renderer">
                                            <property name="height">42</property>
                                            <property name="editable">1</property>
                                          </object>
                                          <attributes>
                                            <attribute name="text">1</attribute>
                                          </attributes>
                                        </child>
                                      </object>
                                    </child>
                                  </object>
                                </property>
                              </object>
                            </property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkBox">
                            <property name="css-classes">toolbar</property>
                            <property name="can-focus">0</property>
                            <child>
                              <object class="GtkButton" id="group_add_button">
                                <property name="can-focus">0</property>
                                <property name="tooltip-text" translatable="yes">Add Group…</property>
                                <property name="use-underline">1</property>
                                <property name="icon-name">lucide-plus-symbolic</property>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="group_remove_button">
                                <property name="sensitive">0</property>
                                <property name="can-focus">0</property>
                                <property name="tooltip-text" translatable="yes">Remove Group…</property>
                                <property name="use-underline">1</property>
                                <property name="icon-name">lucide-trash-symbolic</property>
                              </object>
                            </child>
                            <style>
                              <class name="inline-toolbar"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">offline</property>
                <property name="child">
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">You are offline</property>
                    <style>
                      <class name="dimmed"/>
                    </style>
                  </object>
                </property>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">notes</property>
        <property name="title" translatable="yes">Notes</property>
        <property name="icon-name">lucide-notebook-tabs-symbolic</property>
        <property name="child">
          <object class="GtkStack" id="notes_page_stack">
            <property name="transition-type">crossfade</property>
            <child>
              <object class="GtkStackPage">
                <property name="name">notes</property>
                <property name="child">
                  <object class="GtkBox">
                    <property name="margin-start">18</property>
                    <property name="margin-end">18</property>
                    <property name="margin-top">24</property>
                    <property name="margin-bottom">36</property>
                    <property name="orientation">vertical</property>
                    <property name="spacing">12</property>
                    <child>
                      <object class="GtkLabel">
                        <property name="label" translatable="yes">Personal notes about this contact</property>
                        <property name="wrap">1</property>
                        <property name="max-width-chars">42</property>
                        <style>
                          <class name="dimmed"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkScrolledWindow" id="scrolledwindow_annotation">
                        <property name="height-request">70</property>
                        <property name="focusable">1</property>
                        <property name="vexpand">1</property>
                        <property name="has-frame">1</property>
                        <property name="child">
                          <object class="GtkTextView" id="textview_annotation">
                            <property name="focusable">1</property>
                            <property name="wrap-mode">word</property>
                            <property name="left-margin">6</property>
                            <property name="right-margin">6</property>
                            <property name="top-margin">6</property>
                            <property name="bottom-margin">6</property>
                          </object>
                        </property>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">offline</property>
                <property name="child">
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">You are offline</property>
                    <style>
                      <class name="dimmed"/>
                    </style>
                  </object>
                </property>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">devices</property>
        <property name="title" translatable="yes">Devices</property>
        <property name="icon-name">lucide-monitor-smartphone-symbolic</property>
        <property name="child">
          <object class="GtkStack" id="devices_stack">
            <child>
              <object class="GtkStackPage">
                <property name="name">offline</property>
                <property name="child">
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkLabel">
                        <property name="vexpand">1</property>
                        <property name="label" translatable="yes">No devices online</property>
                        <style>
                          <class name="dimmed"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">devices</property>
                <property name="child">
                  <object class="AdwPreferencesPage" id="devices_page">
                  </object>
                </property>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
  </object>
</interface>
