[gnome-music/wip/cdavis/hdywindow-hdyviewswitcher: 5/5] Use libhandy's .content list style
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/cdavis/hdywindow-hdyviewswitcher: 5/5] Use libhandy's .content list style
- Date: Sat, 22 May 2021 14:53:21 +0000 (UTC)
commit e4ed62d4f0737470d50f4396604bc0173f1ae434
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 and helps
simplify the custom css rules.
data/org.gnome.Music.css | 27 ++-------------------------
data/ui/DiscBox.ui | 2 +-
data/ui/PlaylistsWidget.ui | 2 +-
data/ui/SearchView.ui | 2 +-
4 files changed, 5 insertions(+), 28 deletions(-)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index dce3226ee..4659aec06 100644
--- a/data/org.gnome.Music.css
+++ b/data/org.gnome.Music.css
@@ -155,35 +155,12 @@ 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 {
+.content > row:selected {
+ background-color: @theme_base_color;
color: @theme_fg_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]