[gnome-music/wip/jfelder/dnd-icon: 2/2] songwidget: Style the drag handle icon



commit f62fac777c1866d3d605306599db066761a64b35
Author: Jean Felder <jfelder src gnome org>
Date:   Sat Feb 1 15:22:26 2020 +0100

    songwidget: Style the drag handle icon
    
    This way it uses the same style as the other GNOME core
    applications (GNOME settings for example).

 data/org.gnome.Music.css | 9 +++++++++
 data/ui/SongWidget.ui    | 3 +++
 2 files changed, 12 insertions(+)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index 9242fc57..ea1c3cbe 100644
--- a/data/org.gnome.Music.css
+++ b/data/org.gnome.Music.css
@@ -163,3 +163,12 @@ padding: 0px;
 .search-header {
   font-weight: bold;
 }
+
+/* dnd icon for SongWidget */
+.drag-handle {
+  color: alpha(@theme_fg_color, 0.4);
+}
+
+.drag-handle:backdrop {
+  color: alpha(@theme_unfocused_fg_color, 0.4);
+}
diff --git a/data/ui/SongWidget.ui b/data/ui/SongWidget.ui
index d3cd7f9f..63cfc100 100644
--- a/data/ui/SongWidget.ui
+++ b/data/ui/SongWidget.ui
@@ -25,6 +25,9 @@
               <object class="GtkImage">
                 <property name="visible">True</property>
                 <property name="icon-name">list-drag-handle-symbolic</property>
+                <style>
+                  <class name="drag-handle"/>
+                </style>
               </object>
             </child>
           </object>


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