<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="Window" parent="AdwApplicationWindow">
    <property name="default-width">600</property>
    <property name="default-height">400</property>
    <property name="width-request">360</property>
    <property name="height-request">294</property>
    <property name="content">
      <object class="AdwToastOverlay" id="toast_overlay">
        <child>
          <object class="GtkStack" id="main_stack">
            <property name="visible-child">loading</property>
            <property name="transition-type">crossfade</property>
            <child>
              <object class="GtkWindowHandle" id="loading">
                <property name="child">
                  <object class="AdwToolbarView">
                    <child type="top">
                      <object class="GtkHeaderBar"/>
                    </child>
                    <property name="content">
                      <object class="GtkBox">
                        <property name="orientation">vertical</property>
                        <child>
                          <object class="AdwBanner" id="offline_banner"/>
                        </child>
                        <child>
                          <object class="Spinner" id="spinner">
                            <property name="valign">center</property>
                            <property name="halign">center</property>
                            <property name="vexpand">True</property>
                            <style>
                              <class name="session-loading-spinner"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </property>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="Greeter" id="greeter"/>
            </child>
            <child>
              <object class="Login" id="login"/>
            </child>
            <child>
              <object class="SessionView" id="session">
                <binding name="session">
                  <lookup name="selected-item">
                    <lookup name="session-selection">Window</lookup>
                  </lookup>
                </binding>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">error-page</property>
                <property name="child">
                  <object class="ErrorPage" id="error_page"/>
                </property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </property>
    <child>
      <object class="AdwBreakpoint">
        <condition>max-width: 600sp</condition>
        <setter object="Window" property="compact">True</setter>
      </object>
    </child>
  </template>
</interface>
