[gnome-software/wip/exalm/style-cleanups: 18/29] details-page: Use standard styles for the origin popover




commit 0cc40e932b9addf68b8e425d93be07bf3d78cba1
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Nov 9 21:23:31 2021 +0500

    details-page: Use standard styles for the origin popover

 src/gs-details-page.ui       | 30 ++++++++++++------------------
 src/gs-origin-popover-row.ui |  8 ++++----
 2 files changed, 16 insertions(+), 22 deletions(-)
---
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index 3c0079dd1..26dde23f8 100644
--- a/src/gs-details-page.ui
+++ b/src/gs-details-page.ui
@@ -950,27 +950,21 @@
 
   <object class="GtkPopover" id="origin_popover">
     <property name="visible">False</property>
+    <style>
+      <class name="menu"/>
+    </style>
     <child>
-      <object class="GtkBox" id="origin_popover_box">
-        <property name="orientation">vertical</property>
-        <property name="spacing">12</property>
+      <object class="GtkScrolledWindow">
+        <property name="propagate-natural-height">true</property>
+        <property name="propagate-natural-width">true</property>
+        <property name="max-content-height">600</property>
+        <property name="visible">true</property>
         <child>
-          <object class="GtkScrolledWindow">
-            <property name="propagate-natural-height">true</property>
-            <property name="propagate-natural-width">true</property>
-            <property name="max-content-height">600</property>
+          <object class="GtkListBox" id="origin_popover_list_box">
+            <property name="selection-mode">none</property>
             <property name="visible">true</property>
-            <child>
-              <object class="GtkListBox" id="origin_popover_list_box">
-                <property name="selection-mode">none</property>
-                <property name="visible">true</property>
-                <property name="valign">start</property>
-                <signal name="row-activated" handler="origin_popover_row_activated_cb"/>
-                <style>
-                  <class name="content"/>
-                </style>
-              </object>
-            </child>
+            <property name="valign">start</property>
+            <signal name="row-activated" handler="origin_popover_row_activated_cb"/>
           </object>
         </child>
       </object>
diff --git a/src/gs-origin-popover-row.ui b/src/gs-origin-popover-row.ui
index 81a49ec41..ddd720a78 100644
--- a/src/gs-origin-popover-row.ui
+++ b/src/gs-origin-popover-row.ui
@@ -3,10 +3,10 @@
   <template class="GsOriginPopoverRow" parent="GtkListBoxRow">
     <child>
       <object class="GtkBox">
-        <property name="margin-top">18</property>
-        <property name="margin-bottom">18</property>
-        <property name="margin-start">18</property>
-        <property name="margin-end">18</property>
+        <property name="margin-top">6</property>
+        <property name="margin-bottom">6</property>
+        <property name="margin-start">6</property>
+        <property name="margin-end">6</property>
         <property name="orientation">horizontal</property>
         <property name="spacing">16</property>
         <child>


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