[gnome-themes-standard] Let's wait with forcing clearlooks on everything.



commit 5bb1adbf0a3fd18ad38cfdd5a40c84f8545c35dc
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue Dec 7 22:08:13 2010 +0100

    Let's wait with forcing clearlooks on everything.
    
    Let's start styling as much as we can without resorting to theme engines and only when a widget is too complex to get away with borders and gradient fills and border-radius, we load the engine for specific widgets.
    
    Probably started with teh wrong widget as GtkScrollbar seems to expose its properties in a really weird way.

 themes/Adwaita/gtk-3.0/gtk.css |   36 ++++++++++++++++++++++--------------
 1 files changed, 22 insertions(+), 14 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 2b8c4e4..e5fc455 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -15,8 +15,10 @@
 @define-color success_color #4e9a06;
 
 * {
-    font: Droid Sans;
-    engine: clearlooks;
+    font: Cantarell;
+    /* engine: clearlooks; -- let's only resort to clearlooks for special types of 
+       sophisticated widgets like checkboxes, tabs etc.
+       and do the basic gradient drawing and strokes in here. */
     padding: 1;
 
     /* Style properties */
@@ -181,9 +183,25 @@ GtkNotebook tab:active {
 
 GtkScrollbar {
     padding: 2;
-    background-color: @base_color;
-    color: mix (@bg_color, @fg_color, 0.6);
 }
+	GtkScrollbar .trough { 
+		background-color: red;
+		color: orange;
+	}
+
+	GtkScrollbar .slider { 
+		background-color: green;
+		color: orange;
+	}
+
+		GtkScrollbar .slider:prelight {
+			background-color: red;
+			color: green;
+		}
+/*
+	--FUTURE:
+	GtkScrollbar:vertical button:first-child {} //top button styling 
+*/
 
 .button {
     padding: 3;
@@ -387,16 +405,6 @@ GtkScrolledWindow {
     padding: 1;
 }
 
-GtkScrollbar {
-    border-radius: 3;
-}
-
-.trough:active,
-.slider:prelight,
-.slider {
-    background-color: lighter (@bg_color);
-}
-
 .cell {
     border-width: 0;
 }



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