[gnome-software: 12/18] gs-details-page: Move application summary




commit b44d095552e391798d0f43d03c44d6d2638ac210
Author: Philip Withnall <pwithnall endlessos org>
Date:   Mon Jul 26 16:39:06 2021 +0100

    gs-details-page: Move application summary
    
    This makes it match what’s in the new design:
    https://gitlab.gnome.org/Teams/Design/software-mockups/-/raw/master/adaptive/app-page-adaptive.png.
    
    The behaviour of the label is unchanged. It’s had the `title-2` class
    added.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1111

 src/gs-details-page.ui | 47 ++++++++++++++++++++++++++++-------------------
 1 file changed, 28 insertions(+), 19 deletions(-)
---
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index 6bdfb4d60..998e980d2 100644
--- a/src/gs-details-page.ui
+++ b/src/gs-details-page.ui
@@ -112,19 +112,6 @@
                                     </style>
                                   </object>
                                 </child>
-                                <child>
-                                  <object class="GtkLabel" id="application_details_summary">
-                                    <property name="visible">True</property>
-                                    <property name="halign">fill</property>
-                                    <property name="valign">start</property>
-                                    <property name="hexpand">True</property>
-                                    <property name="margin_bottom">16</property>
-                                    <property name="xalign">0</property>
-                                    <property name="selectable">True</property>
-                                    <property name="wrap">True</property>
-                                    <property name="max-width-chars">60</property>
-                                  </object>
-                                </child>
                               </object>
                             </child>
 
@@ -324,14 +311,36 @@
                         <property name="visible">True</property>
                         <property name="preferred-width">860</property>
                         <child>
-                          <object class="GsDescriptionBox" id="box_details_description">
+                          <object class="GtkBox">
+                            <property name="visible">True</property>
                             <property name="orientation">vertical</property>
                             <property name="spacing">12</property>
-                            <property name="halign">fill</property>
-                            <property name="hexpand">True</property>
-                            <property name="valign">start</property>
-                            <property name="visible">FALSE</property>
-                            <property name="margin_bottom">14</property>
+                            <child>
+                              <object class="GtkLabel" id="application_details_summary">
+                                <property name="visible">True</property>
+                                <property name="halign">fill</property>
+                                <property name="valign">start</property>
+                                <property name="hexpand">True</property>
+                                <property name="xalign">0</property>
+                                <property name="selectable">True</property>
+                                <property name="wrap">True</property>
+                                <property name="max-width-chars">60</property>
+                                <style>
+                                  <class name="title-2"/>
+                                </style>
+                              </object>
+                            </child>
+                            <child>
+                              <object class="GsDescriptionBox" id="box_details_description">
+                                <property name="orientation">vertical</property>
+                                <property name="spacing">12</property>
+                                <property name="halign">fill</property>
+                                <property name="hexpand">True</property>
+                                <property name="valign">start</property>
+                                <property name="visible">FALSE</property>
+                                <property name="margin_bottom">14</property>
+                              </object>
+                            </child>
                           </object>
                         </child>
                       </object>


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