[gnome-music/wip/cdavis/hdywindow-hdyviewswitcher: 38/38] Use libhandy's .content list style




commit 958536b71a565d3dc63ae037f6f86075a69e0cdb
Author: Christopher Davis <brainblasted disroot org>
Date:   Thu Feb 4 22:13:23 2021 -0800

    Use libhandy's .content list style
    
    This gives nice rounded lists like in the latest mockups.

 data/org.gnome.Music.css   | 28 ----------------------------
 data/ui/DiscBox.ui         |  2 +-
 data/ui/PlaylistsWidget.ui |  2 +-
 data/ui/SearchView.ui      |  2 +-
 4 files changed, 3 insertions(+), 31 deletions(-)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index dce3226ee..5214c21c9 100644
--- a/data/org.gnome.Music.css
+++ b/data/org.gnome.Music.css
@@ -155,38 +155,10 @@ list {
     background-color: transparent;
 }
 
-/* workaround to avoid a black background issue
-in AlbumWidget and PlaylistsView
-https://gitlab.gnome.org/GNOME/gtk/issues/694 */
-.songs-list > row {
-    background-color: @theme_base_color;
-}
-
-.songs-list > row:selected label {
-    color: @theme_fg_color;
-}
-
-
 .disc-list-box > row {
 padding: 0px;
 }
 
-.songs-list {
-    border: 1px solid rgba(0, 0, 0, 0.1);
-}
-
-.songs-list > row {
-    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
-}
-
-.songs-list > row:last-child {
-    border-bottom: none;
-}
-
-.songs-list > row:selected {
-    color: @theme_fg_color;
-}
-
 .playlistdialog-row:selected {
     color: @theme_fg_color;
     background-color: @theme_insensitive_bg_color;
diff --git a/data/ui/DiscBox.ui b/data/ui/DiscBox.ui
index 6bcb7ea6a..164d8dcbe 100644
--- a/data/ui/DiscBox.ui
+++ b/data/ui/DiscBox.ui
@@ -32,7 +32,7 @@
             <property name="selection_mode">none</property>
             <signal name="row-activated" handler="_song_activated" swapped="no"/>
             <style>
-              <class name="songs-list"/>
+              <class name="content"/>
             </style>
           </object>
         </child>
diff --git a/data/ui/PlaylistsWidget.ui b/data/ui/PlaylistsWidget.ui
index 72bb137ef..7712c6b6f 100644
--- a/data/ui/PlaylistsWidget.ui
+++ b/data/ui/PlaylistsWidget.ui
@@ -22,7 +22,7 @@
             <property name="visible">True</property>
             <signal name="row-activated" handler="_on_song_activated" swapped="no"/>
             <style>
-              <class name="songs-list"/>
+              <class name="content"/>
             </style>
           </object>
         </child>
diff --git a/data/ui/SearchView.ui b/data/ui/SearchView.ui
index d4305317e..52dca40f8 100644
--- a/data/ui/SearchView.ui
+++ b/data/ui/SearchView.ui
@@ -161,7 +161,7 @@
                 <property name="visible">True</property>
                 <signal name="row-activated" handler="_song_activated" swapped="no"/>
                 <style>
-                  <class name="songs-list"/>
+                  <class name="content"/>
                 </style>
               </object>
             </child>


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