[gnome-games/wip/exalm/lists: 8/9] ui: Use consistent list margins



commit 3a21eaf8fcd2cb7a21b437bebe84d8513494aa38
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jan 15 01:07:51 2020 +0500

    ui: Use consistent list margins
    
    Use 10px on all sides instead of 6px horizontally and 10px vertically.

 data/ui/checkmark-item.ui                         |  2 +-
 data/ui/platform-list-item.ui                     |  5 +----
 data/ui/preferences-page-backup-restore.ui        | 11 ++++++++---
 data/ui/preferences-page-platforms-generic-row.ui |  2 +-
 data/ui/preferences-page-platforms-retro-row.ui   |  2 +-
 data/ui/preferences-sidebar-item.ui               |  5 +----
 src/ui/preferences-page-controllers.vala          |  4 ++--
 7 files changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/data/ui/checkmark-item.ui b/data/ui/checkmark-item.ui
index dcd2c2bb..6069f3e7 100644
--- a/data/ui/checkmark-item.ui
+++ b/data/ui/checkmark-item.ui
@@ -5,7 +5,7 @@
     <property name="visible">true</property>
     <child>
       <object class="GtkBox">
-        <property name="margin">6</property>
+        <property name="margin">10</property>
         <property name="spacing">12</property>
         <property name="visible">true</property>
         <child>
diff --git a/data/ui/platform-list-item.ui b/data/ui/platform-list-item.ui
index 1e97855d..08e90d09 100644
--- a/data/ui/platform-list-item.ui
+++ b/data/ui/platform-list-item.ui
@@ -6,10 +6,7 @@
     <child>
       <object class="GtkLabel" id="label">
         <property name="visible">true</property>
-        <property name="margin-start">6</property>
-        <property name="margin-end">6</property>
-        <property name="margin-top">10</property>
-        <property name="margin-bottom">10</property>
+        <property name="margin">10</property>
         <property name="wrap">true</property>
         <property name="xalign">0</property>
       </object>
diff --git a/data/ui/preferences-page-backup-restore.ui b/data/ui/preferences-page-backup-restore.ui
index 651da512..4ff7e4cc 100644
--- a/data/ui/preferences-page-backup-restore.ui
+++ b/data/ui/preferences-page-backup-restore.ui
@@ -29,7 +29,10 @@
               <object class="GtkBox">
                 <property name="visible">True</property>
                 <property name="valign">center</property>
-                <property name="margin">6</property>
+                <property name="margin-start">10</property>
+                <property name="margin-end">6</property>
+                <property name="margin-top">6</property>
+                <property name="margin-bottom">6</property>
                 <property name="spacing">6</property>
                 <child>
                   <object class="GtkLabel">
@@ -82,8 +85,10 @@
               <object class="GtkBox">
                 <property name="visible">True</property>
                 <property name="valign">center</property>
-                <property name="margin">6</property>
-                <property name="spacing">6</property>
+                <property name="margin-start">10</property>
+                <property name="margin-end">6</property>
+                <property name="margin-top">6</property>
+                <property name="margin-bottom">6</property>
                 <child>
                   <object class="GtkLabel">
                     <property name="visible">True</property>
diff --git a/data/ui/preferences-page-platforms-generic-row.ui 
b/data/ui/preferences-page-platforms-generic-row.ui
index fa50f6c0..381f53d5 100644
--- a/data/ui/preferences-page-platforms-generic-row.ui
+++ b/data/ui/preferences-page-platforms-generic-row.ui
@@ -9,7 +9,7 @@
         <property name="ellipsize">end</property>
         <property name="halign">start</property>
         <property name="hexpand">true</property>
-        <property name="margin">6</property>
+        <property name="margin">10</property>
         <property name="label" bind-source="GamesPreferencesPagePlatformsGenericRow" bind-property="title"/>
       </object>
     </child>
diff --git a/data/ui/preferences-page-platforms-retro-row.ui b/data/ui/preferences-page-platforms-retro-row.ui
index d90e9e18..bd89ae82 100644
--- a/data/ui/preferences-page-platforms-retro-row.ui
+++ b/data/ui/preferences-page-platforms-retro-row.ui
@@ -6,7 +6,7 @@
     <child>
       <object class="GtkBox">
         <property name="visible">True</property>
-        <property name="margin">6</property>
+        <property name="margin">10</property>
         <property name="spacing">6</property>
         <child>
           <object class="GtkBox">
diff --git a/data/ui/preferences-sidebar-item.ui b/data/ui/preferences-sidebar-item.ui
index 64a1b7f6..b1af2e72 100644
--- a/data/ui/preferences-sidebar-item.ui
+++ b/data/ui/preferences-sidebar-item.ui
@@ -6,10 +6,7 @@
     <child>
       <object class="GtkLabel" id="label">
         <property name="visible">true</property>
-        <property name="margin-start">6</property>
-        <property name="margin-end">6</property>
-        <property name="margin-top">10</property>
-        <property name="margin-bottom">10</property>
+        <property name="margin">10</property>
         <property name="wrap">true</property>
         <property name="xalign">0</property>
       </object>
diff --git a/src/ui/preferences-page-controllers.vala b/src/ui/preferences-page-controllers.vala
index 36528bff..7c38f7a8 100644
--- a/src/ui/preferences-page-controllers.vala
+++ b/src/ui/preferences-page-controllers.vala
@@ -35,7 +35,7 @@ private class Games.PreferencesPageControllers : PreferencesPage {
                        i += 1;
                        var box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
                        box.pack_start (new Gtk.Label (device.get_name ()), false, false);
-                       box.margin = 6;
+                       box.margin = 10;
                        box.show_all ();
                        gamepads_list_box.add (box);
                }
@@ -71,7 +71,7 @@ private class Games.PreferencesPageControllers : PreferencesPage {
        private void build_keyboard_list () {
                var box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
                box.pack_start (new Gtk.Label (_("Keyboard")), false, false);
-               box.margin = 6;
+               box.margin = 10;
                box.show_all ();
                keyboard_list_box.add (box);
        }


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