[gnome-packagekit] trivial: Tweak the spacing of UI components



commit 7655929f97ce4d078556562503b78ca4d28dde7e
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Tue Jul 19 08:18:06 2016 -0400

    trivial: Tweak the spacing of UI components
    
    Spacing between components are increment of 3px but typically 6 or 12.
    18px is rather for huge separations between different groups.
    Also add a bit of uniform spacing within textviews for legibility.
    
    These changes make the UI more balanced and space-efficient.

 src/gpk-application.ui   |    9 ++++-----
 src/gpk-error.ui         |    5 +++--
 src/gpk-eula.ui          |    3 ++-
 src/gpk-log.ui           |    2 +-
 src/gpk-signature.ui     |    2 +-
 src/gpk-update-viewer.ui |    3 ++-
 6 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/src/gpk-application.ui b/src/gpk-application.ui
index eccd91b..fbe58dc 100644
--- a/src/gpk-application.ui
+++ b/src/gpk-application.ui
@@ -12,7 +12,7 @@
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
-        <property name="spacing">18</property>
+        <property name="spacing">12</property>
         <child>
           <object class="GtkEntry" id="entry_text">
             <property name="visible">True</property>
@@ -61,7 +61,7 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="orientation">vertical</property>
-                <property name="spacing">18</property>
+                <property name="spacing">12</property>
                 <child>
                   <object class="GtkScrolledWindow" id="scrolledwindow_packages">
                     <property name="visible">True</property>
@@ -100,14 +100,13 @@
                   <object class="GtkHBox" id="hbox_packages">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="border_width">9</property>
                     <property name="spacing">12</property>
                     <child>
                       <object class="GtkBox" id="box2">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="orientation">vertical</property>
-                        <property name="spacing">18</property>
+                        <property name="spacing">12</property>
                         <child>
                           <object class="GtkScrolledWindow" id="scrolledwindow2">
                             <property name="visible">True</property>
@@ -118,7 +117,7 @@
                               <object class="GtkTextView" id="textview_description">
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
-                                <property name="border_width">2</property>
+                                <property name="border_width">6</property>
                                 <property name="editable">False</property>
                                 <property name="wrap_mode">word</property>
                                 <property name="cursor_visible">False</property>
diff --git a/src/gpk-error.ui b/src/gpk-error.ui
index 3913407..b599de7 100644
--- a/src/gpk-error.ui
+++ b/src/gpk-error.ui
@@ -4,12 +4,12 @@
   <requires lib="gtk+" version="3.18"/>
   <object class="GtkWindow" id="dialog_error">
     <property name="can_focus">False</property>
+    <property name="border_width">18</property>
     <child>
       <object class="GtkBox">
         <property name="width_request">450</property>
         <property name="visible">True</property>
         <property name="can_focus">False</property>
-        <property name="border_width">18</property>
         <property name="spacing">12</property>
         <child>
           <object class="GtkImage" id="image1">
@@ -30,7 +30,7 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="orientation">vertical</property>
-            <property name="spacing">18</property>
+            <property name="spacing">12</property>
             <child>
               <object class="GtkLabel" id="label_title">
                 <property name="visible">True</property>
@@ -76,6 +76,7 @@
                       <object class="GtkTextView" id="textview_details">
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
+                        <property name="border_width">6</property>
                         <property name="editable">False</property>
                         <property name="wrap_mode">word</property>
                         <property name="cursor_visible">False</property>
diff --git a/src/gpk-eula.ui b/src/gpk-eula.ui
index 9723eb5..157558f 100644
--- a/src/gpk-eula.ui
+++ b/src/gpk-eula.ui
@@ -9,7 +9,7 @@
       <object class="GtkGrid">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
-        <property name="row_spacing">18</property>
+        <property name="row_spacing">12</property>
         <property name="column_spacing">12</property>
         <child>
           <object class="GtkImage" id="image1">
@@ -58,6 +58,7 @@
               <object class="GtkTextView" id="textview_details">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
+                <property name="border_width">6</property>
                 <property name="editable">False</property>
                 <property name="wrap_mode">word</property>
                 <property name="cursor_visible">False</property>
diff --git a/src/gpk-log.ui b/src/gpk-log.ui
index 51aff15..fb3842d 100644
--- a/src/gpk-log.ui
+++ b/src/gpk-log.ui
@@ -10,7 +10,7 @@
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
-        <property name="spacing">18</property>
+        <property name="spacing">12</property>
         <child>
           <object class="GtkBox">
             <property name="visible">True</property>
diff --git a/src/gpk-signature.ui b/src/gpk-signature.ui
index 6775330..b70fed4 100644
--- a/src/gpk-signature.ui
+++ b/src/gpk-signature.ui
@@ -10,7 +10,7 @@
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
-        <property name="spacing">18</property>
+        <property name="spacing">12</property>
         <child>
           <object class="GtkLabel" id="label1">
             <property name="visible">True</property>
diff --git a/src/gpk-update-viewer.ui b/src/gpk-update-viewer.ui
index e0fc5fe..24cc216 100644
--- a/src/gpk-update-viewer.ui
+++ b/src/gpk-update-viewer.ui
@@ -11,7 +11,7 @@
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
-        <property name="spacing">18</property>
+        <property name="spacing">12</property>
         <child>
           <object class="GtkBox" id="hbox_header">
             <property name="visible">True</property>
@@ -162,6 +162,7 @@
                   <object class="GtkTextView" id="textview_details">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="border_width">6</property>
                   </object>
                 </child>
               </object>


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