[gnome-music/artistcss: 1/2] change color of sidebar using css
- From: Eslam Mostafa <cseslam src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/artistcss: 1/2] change color of sidebar using css
- Date: Thu, 9 May 2013 23:06:19 +0000 (UTC)
commit 4925bafe400bc69327cf9eb60c2202d14b5e14e0
Author: Eslam Mostafa <cseslam gmail com>
Date: Thu May 9 21:06:21 2013 +0200
change color of sidebar using css
data/application.css | 14 ++++++++++++--
src/view.js | 2 +-
2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/data/application.css b/data/application.css
index 287dce1..9ffbed5 100644
--- a/data/application.css
+++ b/data/application.css
@@ -12,8 +12,18 @@
@define-color music_selection_button_dark_b #1c1c1c;
@define-color music_selection_box_dark_border #3e7b05;
-.artist-panel {
- color: #FF00FF;
+.artist-panel{
+ background-color: #d7dad7;
+}
+
+.artist-panel:hover {
+ color: #d7dad7;
+ background-color: #888a85;
+}
+
+.view .artist-panel:selected {
+ color: #d7dad7;
+ background-color: #888a85;
}
.play-bar {
diff --git a/src/view.js b/src/view.js
index 645c31d..5624918 100644
--- a/src/view.js
+++ b/src/view.js
@@ -420,7 +420,7 @@ const Artists = new Lang.Class({
var color = new Gdk.Color({red:10495,green:9727,blue:10495});
else
var color = new Gdk.Color({red:55040,green:55808,blue:55040});
- this.view.get_generic_view().modify_bg(Gtk.StateType.NORMAL,color);
+ this.view.get_generic_view().get_style_context().add_class('artist-panel')
this.show_all();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]