window.ui 4.96 KB
Newer Older
1 2
<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.92.0 -->
Roman Alifanov's avatar
Roman Alifanov committed
3
<interface domain="eepm-play-gui">
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
  <!-- interface-name window.ui -->
  <requires lib="Adw" version="1.0"/>
  <requires lib="gio" version="2.0"/>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.4"/>
  <template class="EepmPlayGuiWindow" parent="AdwApplicationWindow">
    <property name="content">
      <object class="AdwToolbarView">
        <property name="top-bar-style">raised</property>
        <child type="top">
          <object class="AdwHeaderBar" id="header_bar">
            <child type="end">
              <object class="GtkMenuButton">
                <property name="icon-name">open-menu-symbolic</property>
                <property name="menu-model">primary_menu</property>
                <property name="primary">True</property>
                <property name="tooltip-text" translatable="yes">Menu</property>
              </object>
            </child>
          </object>
        </child>
        <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>
Roman Alifanov's avatar
Roman Alifanov committed
31
            <property name="maximum-size">420</property>
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
            <child>
              <object class="GtkBox">
                <property name="orientation">vertical</property>
                <property name="spacing">12</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="model">
                          <object class="GtkStringList">
                            <items>
Roman Alifanov's avatar
Roman Alifanov committed
48 49 50
                              <item translatable="yes">All</item>
                              <item translatable="yes">Installed</item>
                              <item translatable="yes">Uninstalled</item>
51 52 53
                            </items>
                          </object>
                        </property>
Roman Alifanov's avatar
Roman Alifanov committed
54
                        <property name="width-request">170</property>
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
                      </object>
                    </child>
                    <style>
                      <class name="linked"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="AdwSpinner" id="loading_spinner">
                    <property name="halign">center</property>
                    <property name="height-request">48</property>
                    <property name="valign">center</property>
                    <property name="visible">False</property>
                    <property name="width-request">48</property>
                  </object>
                </child>
                <child>
                  <object class="GtkScrolledWindow">
                    <property name="vexpand">True</property>
                    <child>
                      <object class="GtkListBox" id="choice_listbox">
                        <style>
                          <class name="boxed-list"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child type="bottom">
          <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>
            <property name="maximum-size">360</property>
            <child type="center">
              <object class="GtkListBox">
                <child>
                  <object class="AdwButtonRow" id="apply_button">
                    <property name="margin-start">1</property>
99
                    <property name="title" translatable="yes">Update applications</property>
100 101 102 103 104 105 106 107 108 109 110 111 112 113
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </child>
                <style>
                  <class name="boxed-list"/>
                </style>
              </object>
            </child>
          </object>
        </child>
      </object>
    </property>
Roman Alifanov's avatar
Roman Alifanov committed
114 115
    <property name="default-height">489</property>
    <property name="default-width">300</property>
116 117 118 119 120 121 122 123 124 125
  </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>