[gnome-music] Fixed play button color for both themes
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Fixed play button color for both themes
- Date: Thu, 9 May 2013 08:26:37 +0000 (UTC)
commit 185d5c9e4d3dde2025f248a165a0a1d8229e9590
Author: Sai <suman sai14 gmail com>
Date: Thu May 9 11:29:59 2013 +0530
Fixed play button color for both themes
Signed-off-by: Seif Lotfy <seif lotfy com>
src/player.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index 496c17a..94a055d 100644
--- a/src/player.js
+++ b/src/player.js
@@ -261,7 +261,10 @@ const Player = new Lang.Class({
this.duration = this._ui.get_object('duration');
this.replayBtn = this._ui.get_object('menuButton');
let replayMenu = this._ui.get_object('replayMenu');
- let color = new Gdk.Color({red:0,green:0,blue:0});
+ if(Gtk.Settings.get_default().gtk_application_prefer_dark_theme)
+ var color = new Gdk.Color({red:65535,green:65535,blue:65535});
+ else
+ var color = new Gdk.Color({red:0,green:0,blue:0});
this._playImage.modify_fg(Gtk.StateType.ACTIVE,color);
this._pauseImage.modify_fg(Gtk.StateType.ACTIVE,color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]