[gnome-music] background and higlight patch
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] background and higlight patch
- Date: Sat, 11 May 2013 20:34:43 +0000 (UTC)
commit 02c9ef6c574c06db5c6ac67729908f6e2efbd5b8
Author: Sai <suman sai14 gmail com>
Date: Sat May 11 20:36:10 2013 +0530
background and higlight patch
Signed-off-by: Seif Lotfy <seif lotfy com>
data/application.css | 14 +++++++++++---
src/view.js | 6 +++---
2 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/data/application.css b/data/application.css
index 287dce1..0cb3994 100644
--- a/data/application.css
+++ b/data/application.css
@@ -12,10 +12,18 @@
@define-color music_selection_button_dark_b #1c1c1c;
@define-color music_selection_box_dark_border #3e7b05;
-.artist-panel {
- color: #FF00FF;
+.artist-panel-white{
+ background-color: #d7dad7;
+}
+.artist-panel-white:selected{
+ background-color: #888A85;
+}
+.artist-panel-dark{
+ background-color: #282528;
+}
+.artist-panel-dark:selected{
+ background-color: #77757A;
}
-
.play-bar {
border-width: 1px 0 0;
border-style: solid;
diff --git a/src/view.js b/src/view.js
index 645c31d..2dbb26b 100644
--- a/src/view.js
+++ b/src/view.js
@@ -408,6 +408,7 @@ const Artists = new Lang.Class({
this.view.set_hexpand(false);
this._artistAlbumsWidget.set_hexpand(true);
this.view.get_style_context().add_class("artist-panel");
+ this.view.get_generic_view().get_selection().set_mode(Gtk.SelectionMode.SINGLE);
var scrolledWindow = new Gtk.ScrolledWindow();
scrolledWindow.set_policy(
Gtk.PolicyType.NEVER,
@@ -417,10 +418,9 @@ const Artists = new Lang.Class({
this._grid.attach(scrolledWindow, 2, 0, 1, 1);
this._addListRenderers();
if(Gtk.Settings.get_default().gtk_application_prefer_dark_theme)
- var color = new Gdk.Color({red:10495,green:9727,blue:10495});
+ this.view.get_generic_view().get_style_context().add_class("artist-panel-dark");
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-white");
this.show_all();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]