summaryrefslogtreecommitdiffstats
path: root/src/gs-category-page.ui
blob: 4fd72a32cd260350e1cd8f2eac023ac13ef321a1 (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>

  <template class="GsCategoryPage" parent="GsPage">
    <child>
      <object class="GtkScrolledWindow" id="scrolledwindow_category">
        <property name="hscrollbar_policy">never</property>
        <property name="vscrollbar_policy">automatic</property>
        <child>
          <object class="GtkViewport" id="viewport3">
            <property name="scroll-to-focus">True</property>
            <child>
              <object class="AdwClamp">
                <!-- We use the same sizes as the overview page. -->
                <property name="maximum-size">1000</property>
                <property name="tightening-threshold">600</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <property name="spacing">9</property>
                    <property name="valign">start</property>
                    <property name="margin-start">12</property>
                    <property name="margin-end">12</property>
                    <property name="margin-top">0</property><!-- top margin provided by headings -->
                    <property name="margin-bottom">24</property>

                    <child>
                      <object class="GsFeaturedCarousel" id="top_carousel">
                        <property name="height-request">318</property>
                        <property name="margin_top">24</property>
                        <signal name="app-clicked" handler="top_carousel_app_clicked_cb"/>
                      </object>
                    </child>

                    <child>
                      <object class="GtkLabel" id="featured_heading">
                        <property name="visible" bind-source="featured_flow_box" bind-property="visible" bind-flags="sync-create|bidirectional" />
                        <property name="xalign">0</property>
                        <property name="margin_top">24</property>
                        <property name="label" translatable="yes" comments="Heading for featured apps on a category page">Editor’s Choice</property>
                        <style>
                          <class name="heading"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkFlowBox" id="featured_flow_box">
                        <property name="visible">False</property>
                        <property name="column_spacing">14</property>
                        <property name="halign">fill</property>
                        <property name="row_spacing">14</property>
                        <property name="homogeneous">True</property>
                        <property name="hexpand">True</property>
                        <property name="vexpand">True</property>
                        <property name="valign">start</property>
                        <property name="selection-mode">none</property>
                        <accessibility>
                          <relation name="labelled-by">featured_heading</relation>
                        </accessibility>
                      </object>
                    </child>

                    <child>
                      <object class="GtkLabel" id="recently_updated_heading">
                        <property name="visible" bind-source="recently_updated_flow_box" bind-property="visible" bind-flags="sync-create|bidirectional" />
                        <property name="xalign">0</property>
                        <property name="margin_top">24</property>
                        <property name="label" translatable="yes" comments="Heading for recently updated apps on a category page">New &amp; Updated</property>
                        <style>
                          <class name="heading"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkFlowBox" id="recently_updated_flow_box">
                        <property name="visible">False</property>
                        <property name="column_spacing">14</property>
                        <property name="halign">fill</property>
                        <property name="row_spacing">14</property>
                        <property name="homogeneous">True</property>
                        <property name="hexpand">True</property>
                        <property name="vexpand">True</property>
                        <property name="valign">start</property>
                        <property name="selection-mode">none</property>
                        <accessibility>
                          <relation name="labelled-by">recently_updated_heading</relation>
                        </accessibility>
                      </object>
                    </child>

                    <child>
                      <object class="GtkLabel" id="web_apps_heading">
                        <property name="visible" bind-source="web_apps_flow_box" bind-property="visible" bind-flags="sync-create|bidirectional" />
                        <property name="xalign">0</property>
                        <property name="margin_top">24</property>
                        <property name="label" translatable="yes" comments="Heading for web apps on a category page">Picks from the Web</property>
                        <style>
                          <class name="heading"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkFlowBox" id="web_apps_flow_box">
                        <property name="visible">False</property>
                        <property name="column_spacing">14</property>
                        <property name="halign">fill</property>
                        <property name="row_spacing">14</property>
                        <property name="homogeneous">True</property>
                        <property name="hexpand">True</property>
                        <property name="vexpand">True</property>
                        <property name="valign">start</property>
                        <property name="selection-mode">none</property>
                        <accessibility>
                          <relation name="labelled-by">web_apps_heading</relation>
                        </accessibility>
                      </object>
                    </child>

                    <child>
                      <object class="GtkLabel" id="other_heading">
                        <property name="visible" bind-source="category_detail_box" bind-property="visible" bind-flags="sync-create|bidirectional" />
                        <property name="xalign">0</property>
                        <property name="margin_top">24</property>
                        <property name="label" translatable="yes" comments="Heading for the rest of the apps on a category page">Other Software</property>
                        <style>
                          <class name="heading"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkFlowBox" id="category_detail_box">
                        <property name="halign">fill</property>
                        <property name="row_spacing">14</property>
                        <property name="column_spacing">14</property>
                        <property name="homogeneous">True</property>
                        <property name="hexpand">True</property>
                        <property name="vexpand">True</property>
                        <property name="valign">start</property>
                        <property name="selection-mode">none</property>
                        <accessibility>
                          <relation name="labelled-by">other_heading</relation>
                        </accessibility>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>