summaryrefslogtreecommitdiffstats
path: root/src/gs-featured-carousel.ui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gs-featured-carousel.ui86
1 files changed, 86 insertions, 0 deletions
diff --git a/src/gs-featured-carousel.ui b/src/gs-featured-carousel.ui
new file mode 100644
index 0000000..3348686
--- /dev/null
+++ b/src/gs-featured-carousel.ui
@@ -0,0 +1,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>