[libadwaita/wip/exalm/fixes: 2/5] combo-row: Add style classes to itself and the dropdown arrow




commit bcbe55af2c333c234aff481b42f8c45e4b1d89e1
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Sep 27 14:08:35 2021 +0500

    combo-row: Add style classes to itself and the dropdown arrow

 src/adw-combo-row.c  | 3 ++-
 src/adw-combo-row.ui | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/adw-combo-row.c b/src/adw-combo-row.c
index 623f4146..31679719 100644
--- a/src/adw-combo-row.c
+++ b/src/adw-combo-row.c
@@ -28,7 +28,8 @@
  *
  * ## CSS nodes
  *
- * `AdwComboRow` has a main CSS node with name `row`.
+ * `AdwComboRow` has a main CSS node with name `row` and the `.combo` style
+ * class.
  *
  * Its popover has the node named `popover` with the `.combo` style class, it
  * contains a [class@Gtk.ScrolledWindow], which in turn contains a
diff --git a/src/adw-combo-row.ui b/src/adw-combo-row.ui
index 7aa77853..07d96f07 100644
--- a/src/adw-combo-row.ui
+++ b/src/adw-combo-row.ui
@@ -3,6 +3,9 @@
   <requires lib="gtk" version="4.0"/>
   <template class="AdwComboRow" parent="AdwActionRow">
     <property name="activatable">False</property>
+    <style>
+      <class name="combo"/>
+    </style>
     <child>
       <object class="GtkListView" id="current">
         <property name="visible" bind-source="AdwComboRow" bind-property="use-subtitle" 
bind-flags="sync-create|invert-boolean"/>
@@ -20,6 +23,9 @@
         <child>
           <object class="GtkImage" id="image">
             <property name="icon_name">pan-down-symbolic</property>
+            <style>
+              <class name="dropdown-arrow"/>
+            </style>
           </object>
         </child>
         <child>


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