summaryrefslogtreecommitdiffstats
path: root/src/gs-featured-carousel.ui
blob: 3348686b8d817879b51f4e5ce06bd362065a829c (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <requires lib="handy" version="1.0"/>
  <template class="GsFeaturedCarousel" parent="GtkBox">
    <property name="halign">fill</property>
    <property name="orientation">vertical</property>
    <property name="spacing">12</property>
    <child>
      <object class="GtkEventControllerKey">
        <signal name="key-pressed" handler="key_pressed_cb"/>
      </object>
    </child>
    <style>
      <class name="featured-carousel"/>
    </style>
    <child>
      <object class="GtkOverlay" id="overlay">
        <property name="halign">fill</property>
        <property name="valign">fill</property>
        <child>
          <object class="AdwCarousel" id="carousel">
            <signal name="notify::position" handler="carousel_notify_position_cb" swapped="yes"/>
            <style>
              <class name="card"/>
            </style>
          </object>
        </child>
        <child type="overlay">
          <object class="GtkButton" id="previous_button">
            <property name="use-underline">True</property>
            <property name="halign">start</property>
            <property name="valign">center</property>
            <property name="width-request">64</property>
            <property name="height-request">64</property>
            <property name="margin-top">9</property>
            <property name="margin-bottom">9</property>
            <property name="margin-start">9</property>
            <property name="margin-end">9</property>
            <property name="icon-name">go-previous-symbolic</property>
            <signal name="clicked" handler="previous_button_clicked_cb"/>
            <accessibility>
              <property name="label" translatable="yes">Previous</property>
            </accessibility>
            <style>
              <class name="circular"/>
              <class name="flat"/>
              <class name="image-button"/>
            </style>
          </object>
        </child>
        <child type="overlay">
          <object class="GtkButton" id="next_button">
            <property name="use-underline">True</property>
            <property name="halign">end</property>
            <property name="valign">center</property>
            <property name="width-request">64</property>
            <property name="height-request">64</property>
            <property name="margin-top">9</property>
            <property name="margin-bottom">9</property>
            <property name="margin-start">9</property>
            <property name="margin-end">9</property>
            <property name="icon_name">go-next-symbolic</property>
            <signal name="clicked" handler="next_button_clicked_cb"/>
            <accessibility>
              <property name="label" translatable="yes">Next</property>
            </accessibility>
            <style>
              <class name="circular"/>
              <class name="flat"/>
              <class name="image-button"/>
            </style>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwCarouselIndicatorDots" id="dots">
        <property name="carousel">carousel</property>
      </object>
    </child>
    <accessibility>
      <property name="label" translatable="yes">Featured Apps List</property>
    </accessibility>
  </template>
</interface>