[libadwaita/wip/exalm/dropdown-style: 4/5] combo-row: Switch to the .menu popover style




commit ffe0c4f843e381ab30e9421bc590b9d19083e8e9
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Oct 18 18:45:06 2021 +0500

    combo-row: Switch to the .menu popover style
    
    Unify it with dropdowns.

 src/adw-combo-row.c                | 2 +-
 src/adw-combo-row.ui               | 2 +-
 src/stylesheet/widgets/_lists.scss | 4 ++++
 3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/adw-combo-row.c b/src/adw-combo-row.c
index 5a127e46..7942c549 100644
--- a/src/adw-combo-row.c
+++ b/src/adw-combo-row.c
@@ -180,7 +180,7 @@ setup_item (GtkSignalListItemFactory *factory,
   GtkWidget *label;
   GtkWidget *icon;
 
-  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 
   label = gtk_label_new (NULL);
   gtk_label_set_xalign (GTK_LABEL (label), 0.0);
diff --git a/src/adw-combo-row.ui b/src/adw-combo-row.ui
index 2e2ef1e1..3167f8ac 100644
--- a/src/adw-combo-row.ui
+++ b/src/adw-combo-row.ui
@@ -31,7 +31,7 @@
           <object class="GtkPopover" id="popover">
             <signal name="notify::visible" handler="notify_popover_visible_cb" swapped="true"/>
             <style>
-              <class name="combo"/>
+              <class name="menu"/>
             </style>
             <child>
               <object class="GtkScrolledWindow">
diff --git a/src/stylesheet/widgets/_lists.scss b/src/stylesheet/widgets/_lists.scss
index b55c820d..3ec637c6 100644
--- a/src/stylesheet/widgets/_lists.scss
+++ b/src/stylesheet/widgets/_lists.scss
@@ -146,6 +146,10 @@ row.combo {
       color: inherit;
     }
   }
+
+  popover > contents {
+    min-width: 120px;
+  }
 }
 
 /******************


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