<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkStack" id="groupchat_state">
    <property name="margin-bottom">12</property>
    <child>
      <object class="GtkStackPage">
        <property name="name">not-joined</property>
        <property name="child">
          <object class="GtkBox">
            <property name="spacing">12</property>
            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">You left this group chat</property>
                <property name="hexpand">1</property>
                <property name="wrap">1</property>
                <property name="max-width-chars">32</property>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="join_button">
                <property name="label" translatable="yes">Join</property>
                <property name="focusable">1</property>
                <property name="receives-default">1</property>
                <property name="valign">center</property>
                <style>
                  <class name="suggested-action"/>
                </style>
              </object>
            </child>
            <style>
              <class name="toolbar"/>
              <class name="osd"/>
            </style>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">joining</property>
        <property name="child">
          <object class="GtkBox">
            <property name="spacing">12</property>
            <child>
              <object class="AdwSpinner" id="joining_spinner"/>
            </child>
            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">Joining…</property>
                <property name="hexpand">1</property>
                <property name="halign">start</property>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="abort_join_button">
                <property name="label" translatable="yes">Abort</property>
                <property name="focusable">1</property>
                <property name="receives-default">1</property>
                <property name="valign">center</property>
              </object>
            </child>
            <style>
              <class name="toolbar"/>
              <class name="osd"/>
            </style>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">mam-sync-started</property>
        <property name="child">
          <object class="GtkBox">
            <property name="spacing">12</property>
            <child>
              <object class="AdwSpinner" id="mam_sync_spinner"/>
            </child>
            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">Fetching messages…</property>
                <property name="hexpand">1</property>
                <property name="halign">start</property>
              </object>
            </child>
            <style>
              <class name="toolbar"/>
              <class name="osd"/>
            </style>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">mam-sync-error</property>
        <property name="child">
          <object class="GtkBox">
            <property name="spacing">12</property>
            <child>
              <object class="GtkImage">
                <property name="icon-name">lucide-circle-x-symbolic</property>
                <style>
                  <class name="error"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="mam_error_label">
                <property name="wrap">1</property>
                <property name="max-width-chars">50</property>
                <property name="xalign">0</property>
                <property name="hexpand">1</property>
                <property name="halign">start</property>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="close_button">
                <property name="focusable">1</property>
                <property name="receives-default">1</property>
                <property name="tooltip-text" translatable="yes">Close</property>
                <property name="valign">center</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">lucide-x-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <style>
              <class name="toolbar"/>
              <class name="osd"/>
            </style>
          </object>
        </property>
      </object>
    </child>
  </object>
</interface>
