<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.92.0 -->
<interface domain="eepm-play-gui">
  <!-- interface-name window.ui -->
  <requires lib="gio" version="2.0"/>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.6"/>
  <template class="EepmPlayGuiWindow" parent="AdwApplicationWindow">
    <property name="default-height">489</property>
    <property name="default-width">300</property>
    <property name="height-request">294</property>
    <property name="width-request">360</property>
    <child>
      <object class="AdwToolbarView">
        <property name="content">
          <object class="GtkStack" id="main_stack">
            <property name="transition-type">crossfade</property>
            <child>
              <object class="GtkStackPage">
                <property name="child">
                  <object class="AdwStatusPage" id="status_page">
                    <property name="child">
                      <object class="AdwSpinner">
                        <property name="halign">center</property>
                        <property name="height-request">80</property>
                        <property name="valign">start</property>
                        <property name="width-request">80</property>
                      </object>
                    </property>
                    <property name="description" translatable="yes">It could take a while</property>
                    <property name="title" translatable="yes">Getting packages list…</property>
                  </object>
                </property>
                <property name="name">loading</property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="child">
                  <object class="AdwToolbarView">
                    <property name="content">
                      <object class="GtkBox">
                        <property name="orientation">vertical</property>
                        <child>
                          <object class="GtkSearchBar" id="search_bar">
                            <property name="key-capture-widget">EepmPlayGuiWindow</property>
                            <property name="search-mode-enabled" bind-source="search_toggle_button" bind-property="active" bind-flags="sync-create|bidirectional"/>
                            <child>
                              <object class="AdwClamp">
                                <property name="maximum-size">480</property>
                                <child>
                                  <object class="GtkBox">
                                    <child>
                                      <object class="GtkSearchEntry" id="search_entry">
                                        <property name="hexpand">true</property>
                                      </object>
                                    </child>
                                    <child>
                                      <object class="GtkDropDown" id="search_dropdown">
                                        <property name="halign">end</property>
                                        <property name="model">
                                          <object class="GtkStringList">
                                            <items>
                                              <item translatable="yes">All</item>
                                              <item translatable="yes">Installed</item>
                                              <item translatable="yes">Uninstalled</item>
                                              <item translatable="yes">Changed</item>
                                            </items>
                                          </object>
                                        </property>
                                      </object>
                                    </child>
                                    <style>
                                      <class name="linked"/>
                                    </style>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="GtkScrolledWindow">
                            <property name="hscrollbar-policy">never</property>
                            <property name="propagate-natural-height">true</property>
                            <child>
                              <object class="AdwClamp">
                                <property name="margin-bottom">12</property>
                                <property name="margin-end">12</property>
                                <property name="margin-start">12</property>
                                <property name="margin-top">12</property>
                                <child>
                                  <object class="GtkListBox" id="choice_listbox">
                                    <property name="selection-mode">none</property>
                                    <style>
                                      <class name="boxed-list-separate"/>
                                    </style>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </property>
                    <child type="bottom">
                      <object class="GtkCenterBox">
                        <property name="center-widget">
                          <object class="AdwClamp">
                            <property name="margin-end">12</property>
                            <property name="margin-start">12</property>
                            <property name="maximum-size">500</property>
                            <child>
                              <object class="GtkListBox">
                                <child>
                                  <object class="AdwButtonRow" id="apply_button">
                                    <property name="title" translatable="yes">Update applications</property>
                                    <style>
                                      <class name="suggested-action"/>
                                    </style>
                                  </object>
                                </child>
                                <style>
                                  <class name="boxed-list"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </property>
                        <property name="halign">center</property>
                        <property name="margin-bottom">12</property>
                        <property name="margin-end">12</property>
                        <property name="margin-start">12</property>
                        <property name="margin-top">12</property>
                        <child type="end">
                          <object class="GtkButton" id="flags_button">
                            <property name="icon-name">emoji-flags-symbolic</property>
                            <property name="tooltip-text" translatable="yes">Flag Selection dialog</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </property>
                <property name="name">main</property>
              </object>
            </child>
          </object>
        </property>
        <property name="top-bar-style">raised</property>
        <child type="top">
          <object class="AdwHeaderBar" id="header_bar">
            <child type="start">
              <object class="GtkToggleButton" id="search_toggle_button">
                <property name="icon-name">system-search-symbolic</property>
                <property name="sensitive" bind-source="EepmPlayGuiWindow" bind-property="is-loading" bind-flags="sync-create|invert-boolean"/>
              </object>
            </child>
            <child type="end">
              <object class="GtkButton">
                <property name="action-name">app.about</property>
                <property name="icon-name">help-about-symbolic</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
  <menu id="primary_menu">
    <section>
      <item>
        <attribute name="action">app.about</attribute>
        <attribute name="label" translatable="yes">_About Eepm-play-gui</attribute>
      </item>
    </section>
  </menu>
</interface>