[gnome-music/wip/mschraal/default-icon-cleanups: 2/17] playlistswidget: Use Hdy.Clamp for content size




commit ebf6d189870f124a4bfb94c6a6643b0f1927ed2b
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Aug 25 10:42:29 2021 +0200

    playlistswidget: Use Hdy.Clamp for content size
    
    Related: #464

 data/ui/PlaylistControls.ui |  3 ---
 data/ui/PlaylistsWidget.ui  | 31 ++++++++++++++++++++-----------
 2 files changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/data/ui/PlaylistControls.ui b/data/ui/PlaylistControls.ui
index 52352ffd1..43f283cbc 100644
--- a/data/ui/PlaylistControls.ui
+++ b/data/ui/PlaylistControls.ui
@@ -33,9 +33,6 @@
     <property name="orientation">vertical</property>
     <property name="visible">True</property>
     <property name="can_focus">False</property>
-    <property name="margin-bottom">0</property>
-    <property name="margin-end">80</property>
-    <property name="margin-start">80</property>
     <property name="margin-top">18</property>
     <child>
       <object class="GtkStack" id="_name_stack">
diff --git a/data/ui/PlaylistsWidget.ui b/data/ui/PlaylistsWidget.ui
index 7712c6b6f..026dc4015 100644
--- a/data/ui/PlaylistsWidget.ui
+++ b/data/ui/PlaylistsWidget.ui
@@ -4,8 +4,14 @@
     <property name="orientation">vertical</property>
     <property name="visible">True</property>
     <child>
-      <object class="PlaylistControls" id="_pl_ctrls">
+      <object class="HdyClamp">
+        <property name="maximum-size">1000</property>
         <property name="visible">True</property>
+        <child>
+          <object class="PlaylistControls" id="_pl_ctrls">
+            <property name="visible">True</property>
+          </object>
+        </child>
       </object>
     </child>
     <child>
@@ -13,17 +19,20 @@
         <property name="vexpand">True</property>
         <property name="visible">True</property>
         <child>
-          <object class="GtkListBox" id="_songs_list">
-            <property name="margin-bottom">20</property>
-            <property name="margin-end">80</property>
-            <property name="margin-start">80</property>
-            <property name="margin-top">20</property>
-            <property name="valign">start</property>
+          <object class="HdyClamp">
+            <property name="maximum-size">1000</property>
             <property name="visible">True</property>
-            <signal name="row-activated" handler="_on_song_activated" swapped="no"/>
-            <style>
-              <class name="content"/>
-            </style>
+            <child>
+              <object class="GtkListBox" id="_songs_list">
+                <property name="margin-bottom">20</property>
+                <property name="margin-top">20</property>
+                <property name="visible">True</property>
+                <signal name="row-activated" handler="_on_song_activated" swapped="no"/>
+                <style>
+                  <class name="content"/>
+                </style>
+              </object>
+            </child>
           </object>
         </child>
       </object>


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