[gnome-software: 93/110] Expand lozenge children




commit c21e30fd5b35b077b9acaf2e255c3c1affc17f01
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Aug 27 15:47:18 2021 -0300

    Expand lozenge children
    
    We lost this during the transition to GTK4, so
    reinstate centered children on the lozenges of
    the details page.

 src/gs-age-rating-context-dialog.ui       | 1 +
 src/gs-app-context-bar.ui                 | 4 ++++
 src/gs-app-translation-dialog.ui          | 1 +
 src/gs-context-dialog-row.ui              | 2 ++
 src/gs-hardware-support-context-dialog.ui | 1 +
 src/gs-license-tile.ui                    | 3 +++
 src/gs-safety-context-dialog.ui           | 1 +
 src/gs-storage-context-dialog.ui          | 1 +
 8 files changed, 14 insertions(+)
---
diff --git a/src/gs-age-rating-context-dialog.ui b/src/gs-age-rating-context-dialog.ui
index 6e7dee4f2..485dd744e 100644
--- a/src/gs-age-rating-context-dialog.ui
+++ b/src/gs-age-rating-context-dialog.ui
@@ -38,6 +38,7 @@
                         <child>
                           <object class="GtkLabel" id="age">
                             <property name="halign">center</property>
+                            <property name="hexpand">True</property>
                             <!-- this is a placeholder: the text is actually set in code -->
                             <property name="label">All</property>
                             <property name="visible">True</property>
diff --git a/src/gs-app-context-bar.ui b/src/gs-app-context-bar.ui
index c4709c17b..891a6f51e 100644
--- a/src/gs-app-context-bar.ui
+++ b/src/gs-app-context-bar.ui
@@ -39,6 +39,7 @@
                     <child>
                       <object class="GtkLabel" id="storage_tile_lozenge_content">
                         <property name="halign">center</property>
+                        <property name="hexpand">True</property>
                         <!-- this is a placeholder: the text is actually set in code -->
                         <property name="label">20 MB</property>
                         <property name="visible">True</property>
@@ -104,6 +105,7 @@
                     <child>
                       <object class="GtkImage" id="safety_tile_lozenge_content">
                         <property name="halign">center</property>
+                        <property name="hexpand">True</property>
                         <!-- this is a placeholder: the icon is actually set in code -->
                         <property name="icon-name">safety-symbolic</property>
                         <property name="visible">True</property>
@@ -177,6 +179,7 @@
                     <child>
                       <object class="GtkImage" id="hardware_support_tile_lozenge_content">
                         <property name="halign">center</property>
+                        <property name="hexpand">True</property>
                         <!-- this is a placeholder: the icon is actually set in code -->
                         <property name="icon-name">adaptive-symbolic</property>
                         <property name="pixel-size">56</property>
@@ -242,6 +245,7 @@
                     <child>
                       <object class="GtkLabel" id="age_rating_tile_lozenge_content">
                         <property name="halign">center</property>
+                        <property name="hexpand">True</property>
                         <!-- this is a placeholder: the text is actually set in code -->
                         <property name="label">18+</property>
                         <property name="visible">True</property>
diff --git a/src/gs-app-translation-dialog.ui b/src/gs-app-translation-dialog.ui
index af603344d..d2cee1050 100644
--- a/src/gs-app-translation-dialog.ui
+++ b/src/gs-app-translation-dialog.ui
@@ -40,6 +40,7 @@
                         <child>
                           <object class="GtkImage" id="icon">
                             <property name="halign">center</property>
+                            <property name="hexpand">True</property>
                             <property name="icon-name">flag-outline-thin-symbolic</property>
                             <property name="icon-size">large</property>
                             <property name="visible">True</property>
diff --git a/src/gs-context-dialog-row.ui b/src/gs-context-dialog-row.ui
index 8bf885754..e158b01b4 100644
--- a/src/gs-context-dialog-row.ui
+++ b/src/gs-context-dialog-row.ui
@@ -19,6 +19,7 @@
           <object class="GtkBox" id="lozenge">
             <property name="halign">center</property>
             <property name="valign">start</property>
+            <property name="hexpand">False</property>
             <property name="visible">True</property>
             <style>
               <class name="context-tile-lozenge"/>
@@ -27,6 +28,7 @@
             <child>
               <object class="GtkImage" id="lozenge_content_image">
                 <property name="halign">center</property>
+                <property name="hexpand">True</property>
                 <!-- this is a placeholder: the icon is actually set in code -->
                 <property name="icon-name">safety-symbolic</property>
                 <property name="pixel-size">16</property>
diff --git a/src/gs-hardware-support-context-dialog.ui b/src/gs-hardware-support-context-dialog.ui
index de31b5748..884736f60 100644
--- a/src/gs-hardware-support-context-dialog.ui
+++ b/src/gs-hardware-support-context-dialog.ui
@@ -38,6 +38,7 @@
                         <child>
                           <object class="GtkImage" id="icon">
                             <property name="halign">center</property>
+                            <property name="hexpand">True</property>
                             <!-- this is a placeholder: the icon is actually set in code -->
                             <property name="icon-name">safety-symbolic</property>
                             <property name="pixel-size">24</property>
diff --git a/src/gs-license-tile.ui b/src/gs-license-tile.ui
index ff57fc3a4..b5c0cc62c 100644
--- a/src/gs-license-tile.ui
+++ b/src/gs-license-tile.ui
@@ -44,6 +44,7 @@
                         <child>
                           <object class="GtkImage" id="lozenge0_image">
                             <property name="halign">center</property>
+                            <property name="hexpand">True</property>
                             <property name="icon-name">heart-filled-symbolic</property>
                             <property name="visible">True</property>
                           </object>
@@ -61,6 +62,7 @@
                         <child>
                           <object class="GtkImage" id="lozenge1_image">
                             <property name="halign">center</property>
+                            <property name="hexpand">True</property>
                             <property name="icon-name">system-users-symbolic</property>
                             <property name="visible">True</property>
                           </object>
@@ -78,6 +80,7 @@
                         <child>
                           <object class="GtkImage" id="lozenge2_image">
                             <property name="halign">center</property>
+                            <property name="hexpand">True</property>
                             <property name="icon-name">sign-language-symbolic</property>
                             <property name="visible">True</property>
                           </object>
diff --git a/src/gs-safety-context-dialog.ui b/src/gs-safety-context-dialog.ui
index bb5d217bc..e207dd4c1 100644
--- a/src/gs-safety-context-dialog.ui
+++ b/src/gs-safety-context-dialog.ui
@@ -38,6 +38,7 @@
                         <child>
                           <object class="GtkImage" id="icon">
                             <property name="halign">center</property>
+                            <property name="hexpand">True</property>
                             <!-- this is a placeholder: the icon is actually set in code -->
                             <property name="icon-name">safety-symbolic</property>
                             <property name="pixel-size">24</property>
diff --git a/src/gs-storage-context-dialog.ui b/src/gs-storage-context-dialog.ui
index f536a9fa7..ca3914b99 100644
--- a/src/gs-storage-context-dialog.ui
+++ b/src/gs-storage-context-dialog.ui
@@ -38,6 +38,7 @@
                         <child>
                           <object class="GtkLabel" id="lozenge_content">
                             <property name="halign">center</property>
+                            <property name="hexpand">True</property>
                             <!-- this is a placeholder: the text is actually set in code -->
                             <property name="label">20 MB</property>
                             <property name="visible">True</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]