[gnome-software: 21/24] gs-category-page: Rework margins in category page UI
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 21/24] gs-category-page: Rework margins in category page UI
- Date: Mon, 3 May 2021 15:24:14 +0000 (UTC)
commit 2968d7f2f54f8b9f73bf95cac7ef33e67d773fef
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Apr 28 12:04:00 2021 +0100
gs-category-page: Rework margins in category page UI
This fixes the bottom margin, and makes the calculation of the others a
little more straightforward when reading the UI file.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
src/gs-category-page.ui | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/gs-category-page.ui b/src/gs-category-page.ui
index 1d90514f1..96953d865 100644
--- a/src/gs-category-page.ui
+++ b/src/gs-category-page.ui
@@ -23,13 +23,15 @@
<property name="orientation">vertical</property>
<property name="spacing">9</property>
<property name="valign">start</property>
+ <property name="margin-start">24</property>
+ <property name="margin-end">24</property>
+ <property name="margin-top">0</property><!-- top margin provided by headings -->
+ <property name="margin-bottom">24</property>
<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_start">24</property>
<property name="margin_top">24</property>
- <property name="margin_end">24</property>
<property name="label" translatable="yes" comments="Heading for featured apps on a
category page">Editor’s Picks</property>
<accessibility>
<relation target="featured_flow_box" type="label-for"/>
@@ -43,8 +45,6 @@
<object class="GtkFlowBox" id="featured_flow_box">
<property name="visible">False</property>
<property name="column_spacing">14</property>
- <property name="margin_start">24</property>
- <property name="margin_end">24</property>
<property name="halign">fill</property>
<property name="row_spacing">14</property>
<property name="homogeneous">True</property>
@@ -60,9 +60,7 @@
<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_start">24</property>
<property name="margin_top">24</property>
- <property name="margin_end">24</property>
<property name="label" translatable="yes" comments="Heading for the rest of the apps
on a category page">Other Apps</property>
<accessibility>
<relation target="category_detail_box" type="label-for"/>
@@ -74,8 +72,6 @@
</child>
<child>
<object class="GtkFlowBox" id="category_detail_box">
- <property name="margin_start">24</property>
- <property name="margin_end">24</property>
<property name="halign">fill</property>
<property name="visible">True</property>
<property name="row_spacing">14</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]