summaryrefslogtreecommitdiffstats
path: root/src/gs-search-page.ui
blob: 7d2768e102a510fa4e51ea8263f807e1bfbaa134 (plain)
1
2
3
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="GsSearchPage" parent="GsPage">
    <accessibility>
      <property name="label" translatable="yes">Search page</property>
    </accessibility>
    <child>
      <object class="GtkStack" id="stack_search">

        <child>
          <object class="GtkStackPage">
            <property name="name">no-search</property>
            <property name="child">
              <object class="AdwStatusPage">
                <property name="icon_name">org.gnome.Software-symbolic</property>
                <property name="title" translatable="yes">Search for Apps</property>
              </object>
            </property>
          </object>
        </child>

        <child>
          <object class="GtkStackPage">
            <property name="name">spinner</property>
            <property name="child">
              <object class="GtkSpinner" id="spinner_search">
                <property name="width_request">32</property>
                <property name="height_request">32</property>
                <property name="halign">center</property>
                <property name="valign">center</property>
                <style>
                  <class name="fade-in"/>
                </style>
              </object>
            </property>
          </object>
        </child>

        <child>
          <object class="GtkStackPage">
            <property name="name">no-results</property>
            <property name="child">
              <object class="AdwStatusPage" id="noresults_grid_search">
                <property name="icon_name">org.gnome.Software-symbolic</property>
                <property name="title" translatable="yes">No Application Found</property>
              </object>
            </property>
          </object>
        </child>

        <child>
          <object class="GtkStackPage">
            <property name="name">results</property>
            <property name="child">
              <object class="GtkScrolledWindow" id="scrolledwindow_search">
                <property name="can_focus">True</property>
                <property name="hscrollbar_policy">never</property>
                <property name="vscrollbar_policy">automatic</property>
                <style>
                  <class name="list-page"/>
                </style>
                <child>
                  <object class="AdwClamp">
                    <child>
                      <object class="GtkListBox" id="list_box_search">
                        <property name="can_focus">True</property>
                        <property name="valign">start</property>
                        <property name="selection_mode">none</property>
                        <property name="margin-top">24</property>
                        <property name="margin-bottom">36</property>
                        <property name="margin-start">12</property>
                        <property name="margin-end">12</property>
                        <property name="valign">start</property>
                        <style>
                          <class name="boxed-list"/>
                          <class name="section"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

      </object>
    </child>
  </template>
</interface>