<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="Session" parent="AdwBin">
    <property name="child">
      <object class="GtkStack" id="stack">
        <property name="visible-child">overlay</property>
        <property name="transition-type">crossfade</property>
        <child>
          <object class="GtkOverlay" id="overlay">
            <child type="overlay">
              <object class="MediaViewer" id="media_viewer">
                <property name="visible">False</property>
              </object>
            </child>
            <child>
              <object class="AdwLeaflet" id="leaflet">
                <property name="fold-threshold-policy">minimum</property>
                <child>
                  <object class="Sidebar" id="sidebar">
                    <property name="compact" bind-source="leaflet" bind-property="folded" bind-flags="sync-create"/>
                    <property name="user" bind-source="Session" bind-property="user" bind-flags="sync-create"/>
                    <property name="item-list" bind-source="Session" bind-property="item-list" bind-flags="sync-create"/>
                  </object>
                </child>
                <child>
                  <object class="AdwLeafletPage">
                    <property name="navigatable">False</property>
                    <property name="child">
                      <object class="GtkSeparator"/>
                    </property>
                  </object>
                </child>
                <child>
                  <object class="Content" id="content">
                    <property name="compact" bind-source="leaflet" bind-property="folded" bind-flags="sync-create"/>
                    <property name="item" bind-source="sidebar" bind-property="selected-item" bind-flags="sync-create | bidirectional"/>
                    <property name="session">Session</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </property>
  </template>
</interface>
