[gnome-games] savestate-listbox-row: Add margin in xml



commit fb2dd19b618283e959d040fd8473df17cfdabd69
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Thu Aug 15 23:27:20 2019 +0500

    savestate-listbox-row: Add margin in xml
    
    Override css again to remove it and instead add it on the box in xml.
    
    This will be used in the following commit to have a revealer around the
    box.

 data/gtk-style.css               | 4 ++++
 data/ui/savestate-listbox-row.ui | 4 ++++
 data/ui/savestates-list.ui       | 4 ++++
 3 files changed, 12 insertions(+)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 300061ff..e0e212ac 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -8,6 +8,10 @@
        background-color: @theme_base_color;
 }
 
+.savestate-row {
+  padding: 0;
+}
+
 .savestate-thumbnail {
   min-width: 64px;
   min-height: 64px;
diff --git a/data/ui/savestate-listbox-row.ui b/data/ui/savestate-listbox-row.ui
index 01333854..7fdc3d4c 100644
--- a/data/ui/savestate-listbox-row.ui
+++ b/data/ui/savestate-listbox-row.ui
@@ -3,9 +3,13 @@
   <requires lib="gtk+" version="3.24"/>
   <template class="GamesSavestateListBoxRow" parent="GtkListBoxRow">
     <property name="visible">true</property>
+    <style>
+      <class name="savestate-row"/>
+    </style>
     <child>
       <object class="GtkBox">
         <property name="visible">true</property>
+        <property name="margin">2</property>
         <child>
           <object class="GtkImage" id="image">
             <property name="visible">true</property>
diff --git a/data/ui/savestates-list.ui b/data/ui/savestates-list.ui
index c967f8fb..5921bef7 100644
--- a/data/ui/savestates-list.ui
+++ b/data/ui/savestates-list.ui
@@ -31,9 +31,13 @@
                       <object class="GtkListBoxRow" id="new_savestate_row">
                         <property name="visible">True</property>
                         <property name="selectable">False</property>
+                        <style>
+                          <class name="savestate-row"/>
+                        </style>
                         <child>
                           <object class="GtkBox">
                             <property name="visible">True</property>
+                            <property name="margin">2</property>
                             <child>
                               <object class="GtkImage">
                                 <property name="visible">True</property>


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