[gnome-software/1375-screenshots-next-prev-buttons-aren-t-circular] gs-screenshot-carousel: Make prev/next buttons circular
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1375-screenshots-next-prev-buttons-aren-t-circular] gs-screenshot-carousel: Make prev/next buttons circular
- Date: Tue, 7 Sep 2021 13:57:33 +0000 (UTC)
commit eb11d9512a86727d50b9eef9fee77980954d24ba
Author: Milan Crha <mcrha redhat com>
Date: Tue Sep 7 15:55:56 2021 +0200
gs-screenshot-carousel: Make prev/next buttons circular
Tweak the .ui file to have the two buttons circular and look
similar as those in the featured carousel.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1375
src/gs-screenshot-carousel.ui | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-screenshot-carousel.ui b/src/gs-screenshot-carousel.ui
index d887b1128..8d5fdf407 100644
--- a/src/gs-screenshot-carousel.ui
+++ b/src/gs-screenshot-carousel.ui
@@ -31,6 +31,9 @@
<child>
<object class="GtkButton" id="button_previous">
<property name="visible">True</property>
+ <property name="width-request">64</property>
+ <property name="height-request">64</property>
+ <property name="margin">9</property>
<signal name="clicked" handler="gs_screenshot_carousel_button_previous_clicked_cb"
swapped="yes"/>
<child internal-child="accessible">
<object class="AtkObject">
@@ -40,13 +43,12 @@
</child>
<style>
<class name="circular"/>
- <class name="image-button"/>
<class name="osd"/>
</style>
<child>
<object class="GtkImage">
<property name="halign">center</property>
- <property name="icon-name">go-previous-symbolic</property>
+ <property name="icon-name">carousel-arrow-previous-symbolic</property>
<property name="icon-size">1</property>
<property name="valign">center</property>
<property name="visible">True</property>
@@ -68,6 +70,9 @@
<child>
<object class="GtkButton" id="button_next">
<property name="visible">True</property>
+ <property name="width-request">64</property>
+ <property name="height-request">64</property>
+ <property name="margin">9</property>
<signal name="clicked" handler="gs_screenshot_carousel_button_next_clicked_cb"
swapped="yes"/>
<child internal-child="accessible">
<object class="AtkObject">
@@ -77,13 +82,12 @@
</child>
<style>
<class name="circular"/>
- <class name="image-button"/>
<class name="osd"/>
</style>
<child>
<object class="GtkImage">
<property name="halign">center</property>
- <property name="icon-name">go-next-symbolic</property>
+ <property name="icon-name">carousel-arrow-next-symbolic</property>
<property name="icon-size">1</property>
<property name="valign">center</property>
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]