[gnome-music] style: fix styling for entry tags



commit 8454e1a42c0feced221fe4cd14df8c3389299482
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Sep 24 15:55:13 2015 -0700

    style: fix styling for entry tags
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755601

 data/application.css    |   32 ++++++++++++++++++++++++++++++++
 gnomemusic/searchbar.py |    2 +-
 2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/data/application.css b/data/application.css
index 99bdaf2..d0610e5 100644
--- a/data/application.css
+++ b/data/application.css
@@ -11,6 +11,10 @@
 @define-color music_selection_button_dark_a #3b3b3b;
 @define-color music_selection_button_dark_b #1c1c1c;
 @define-color music_selection_box_dark_border #3e7b05;
+
+ define-color music_entry_tag_bg #3465a4;
+ define-color music_entry_tag_fg @theme_base_color;
+
 @binding-set UnbindSpace{
     unbind "space";
 }
@@ -160,3 +164,31 @@ GtkTreeView{
 }
 
 .content-view { background-color: @theme_bg; }
+
+.music-entry-tag {
+    background-image: none;
+    background-color: @music_entry_tag_bg;
+    color: @music_entry_tag_fg;
+
+    border-radius: 4px;
+    border-width: 0;
+
+    margin: 2px;
+    padding: 4px;
+}
+
+.music-entry-tag:hover {
+    background-color: shade(@music_entry_tag_bg, 1.10);
+    color: @music_entry_tag_fg;
+}
+
+.music-entry-tag.button,
+.music-entry-tag.button:hover,
+.music-entry-tag.button:active,
+.music-entry-tag.button:active:hover {
+    background-color: transparent;
+    background-image: none;
+    box-shadow: none;
+    border-image: none;
+    border-width: 0;
+}
diff --git a/gnomemusic/searchbar.py b/gnomemusic/searchbar.py
index 5c6d6f0..c3ab3ce 100644
--- a/gnomemusic/searchbar.py
+++ b/gnomemusic/searchbar.py
@@ -50,7 +50,7 @@ class BaseManager:
         self.label = label
         self.entry = entry
         self.tag = Gd.TaggedEntryTag()
-        self.tag.set_style('button')
+        self.tag.set_style('music-entry-tag')
         self.tag.manager = self
         self.values = []
 


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