[libadwaita/wip/exalm/fixes: 4/4] action-row: Move spacing into CSS




commit 27ad622776764952050789a1b0459c3abf30877e
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Apr 22 06:19:38 2022 +0400

    action-row: Move spacing into CSS

 src/adw-action-row.ui              | 9 ++++++---
 src/stylesheet/widgets/_lists.scss | 6 ++++++
 2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/adw-action-row.ui b/src/adw-action-row.ui
index 3efdad57..bd41b8c8 100644
--- a/src/adw-action-row.ui
+++ b/src/adw-action-row.ui
@@ -9,7 +9,6 @@
     </accessibility>
     <child>
       <object class="GtkBox" id="header">
-        <property name="spacing">12</property>
         <property name="valign">center</property>
         <property name="hexpand">False</property>
         <style>
@@ -18,7 +17,9 @@
         <child>
           <object class="GtkBox" id="prefixes">
             <property name="visible">False</property>
-            <property name="spacing">12</property>
+            <style>
+              <class name="prefixes"/>
+            </style>
           </object>
         </child>
         <child>
@@ -87,7 +88,9 @@
         <child>
           <object class="GtkBox" id="suffixes">
             <property name="visible">False</property>
-            <property name="spacing">12</property>
+            <style>
+              <class name="suffixes"/>
+            </style>
           </object>
         </child>
       </object>
diff --git a/src/stylesheet/widgets/_lists.scss b/src/stylesheet/widgets/_lists.scss
index efb8cdb9..5b43c202 100644
--- a/src/stylesheet/widgets/_lists.scss
+++ b/src/stylesheet/widgets/_lists.scss
@@ -85,6 +85,7 @@ row {
   > box.header {
     margin-left: 12px;
     margin-right: 12px;
+    border-spacing: 12px;
     min-height: 50px;
 
     > .icon:disabled {
@@ -96,6 +97,11 @@ row {
       margin-bottom: 6px;
       border-spacing: 3px;
     }
+
+    > .prefixes,
+    > .suffixes {
+      border-spacing: 12px;
+    }
   }
 }
 


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