[gnome-music/wip/jfelder/core-playlists-view] artistalbumswidget: Fix background-color
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/core-playlists-view] artistalbumswidget: Fix background-color
- Date: Thu, 11 Jul 2019 00:01:08 +0000 (UTC)
commit 877a77a9a36313d34afbfb7abbb6ee5a19d01683
Author: Jean Felder <jfelder src gnome org>
Date: Thu Jul 11 01:35:21 2019 +0200
artistalbumswidget: Fix background-color
Do not change color on hover.
data/org.gnome.Music.css | 10 ++++++++++
gnomemusic/widgets/artistalbumswidget.py | 1 +
2 files changed, 11 insertions(+)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index 6af80c89..3d645284 100644
--- a/data/org.gnome.Music.css
+++ b/data/org.gnome.Music.css
@@ -52,6 +52,16 @@ box#ArtistAlbumsWidget .artist-label {
}
/* ArtistAlbumWidget */
+.artist-albums-widget,
+.artist-albums-widget:hover {
+ background-color: @theme_bg_color;
+}
+
+.artist-albums-widget > row:hover {
+ background-color: rgba(0, 0, 0, 0.0);
+ box-shadow: none;
+}
+
.album-title {
font-size: large;
font-weight: bold;
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index 8a2aa703..5e3f9817 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -75,6 +75,7 @@ class ArtistAlbumsWidget(Gtk.ListBox):
"items-changed", self. _on_model_items_changed)
self.bind_model(self._model, self._add_album)
+ self.get_style_context().add_class("artist-albums-widget")
self.show_all()
def _song_activated(self, widget, song_widget):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]