[sushi] style: remove more custom theming



commit d58f6043b6b6f98945d2072f3999ff038cc0ae0d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jul 3 12:36:20 2012 -0400

    style: remove more custom theming
    
    Don't use an universal selector to set our style; fix backdrop state of
    the OSD toolbar and a wrong background on the window decoration we draw.

 data/style/gtk-style.css |   19 ++++++-------------
 src/js/ui/mainWindow.js  |    2 ++
 2 files changed, 8 insertions(+), 13 deletions(-)
---
diff --git a/data/style/gtk-style.css b/data/style/gtk-style.css
index ef09ad1..24991b0 100644
--- a/data/style/gtk-style.css
+++ b/data/style/gtk-style.css
@@ -2,13 +2,6 @@
 @define-color np_bg_color #333;
 @define-color np_text_color #2e3436;
 
- define-color info_bg_color @np_bg_color;
- define-color info_fg_color @np_fg_color;
-
-* {
-    background-color: alpha(#000, 0.0);
-}
-
 GtkWindow {
     color: @np_fg_color;
 }
@@ -59,16 +52,16 @@ GtkSourceView {
     background-image: -gtk-gradient(linear,
                                     left top,
                                     left bottom,
-                                    from(alpha(#333, 0.0)),
-                                    color-stop(0.50, alpha(#333, 0.66)),
-                                    to(alpha(#333, 0.0)));
+                                    from(alpha(@np_bg_color, 0.0)),
+                                    color-stop(0.50, alpha(@np_bg_color, 0.66)),
+                                    to(alpha(@np_bg_color, 0.0)));
 }
 
 .np-decoration.button:hover:active {
     background-image: -gtk-gradient(linear,
                                     left top,
                                     left bottom,
-                                    from(alpha(#333, 0.0)),
-                                    color-stop(0.50, #333),
-                                    to(alpha(#333, 0.0)));
+                                    from(alpha(@np_bg_color, 0.0)),
+                                    color-stop(0.50, @np_bg_color),
+                                    to(alpha(@np_bg_color, 0.0)));
 }
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index b182192..e5a30da 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -597,6 +597,7 @@ MainWindow.prototype = {
 
         this._titleLabel.show();
         this._titleActor = new GtkClutter.Actor({ contents: this._titleLabel });
+        Utils.alphaGtkWidget(this._titleActor.get_widget());
 
         this._quitButton =
             new Gtk.Button({ image: new Gtk.Image ({ icon_size: Gtk.IconSize.MENU,
@@ -609,6 +610,7 @@ MainWindow.prototype = {
                                            this._clearAndQuit));
 
         this._quitActor = new GtkClutter.Actor({ contents: this._quitButton });
+        Utils.alphaGtkWidget(this._quitActor.get_widget());
         this._quitActor.set_reactive(true);
 
         let hidden = new Clutter.Actor();



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