[gnome-themes-standard] gtk3 theme: started playing with the css.



commit b1d89049319b80655c0c7f355160434ff79dfe68
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Tue Dec 7 15:41:54 2010 +0100

    gtk3 theme: started playing with the css.

 themes/Adwaita/gtk-3.0/gtk.css |   41 +++++++++++++++++++++++++++++++++++++--
 1 files changed, 38 insertions(+), 3 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 14b7190..2b8c4e4 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -93,6 +93,7 @@
     -clearlooks-colorize-scrollbar: false;
     -clearlooks-style: gnome3;
     -clearlooks-accel-label-shade: 0.5;
+
 }
 
 *:hover {
@@ -114,6 +115,18 @@
     background-color: shade (@bg_color, 0.915);
 }
 
+.background {
+    /* I like this huge gradient, but probably it would be better
+    to have a fixed height gradient, not sure.*/
+    /*background-image: -gtk-gradient (linear,
+				     left top, left bottom,
+				     from (shade (@bg_color, 0.94)),
+				     to (@bg_color)); */
+    border-style: none;
+    border-width: 0;
+    border-radius: 0;
+}
+
 .entry {
     padding: 2;
     background-color: @base_color;
@@ -154,10 +167,12 @@ GtkNotebook,
     background-color: shade (@bg_color, 1.12);
     padding: 3;
     border-style: solid;
+    border-radius: 0;
 }
 
 GtkNotebook tab {
     padding: 0;
+    border-radius: 2;
 }
 
 GtkNotebook tab:active {
@@ -209,10 +224,12 @@ GtkStatusbar {
 .menubar {
     background-image: -gtk-gradient (linear,
 				     left top, left bottom,
-				     from (shade (@bg_color, 0.94)),
-				     to (@bg_color));
+				     from (@bg_color),
+				     color-stop (0.45, shade (@bg_color, 0.97)),
+				     to (shade (@bg_color, 0,99));
     border-style: none;
     padding: 4;
+    border-width: 0;
 
     -GtkWidget-window-dragging: true;
 }
@@ -311,6 +328,7 @@ column-header {
     border-radius: 0;
     border-style: none;
     padding: 4;
+    border-width: 0;
 }
 
 GtkToolbar .button {
@@ -323,9 +341,25 @@ GtkToolbar .button {
 				     color-stop (0.3, alpha (shade (@bg_color, 0.9), 0.0)),
 				     color-stop (0.6, alpha (shade (@bg_color, 0.9), 0.0)),
 				     to (alpha (shade (@bg_color, 0.85), 0.0)));
+    -GtkWidget-focus-line-width: 0;
 }
 
-GtkToolbar .button:hover {
+/* GtkToolbar .button:focused {
+    background-color: red;
+} this pseudo-class doesn't work */ 
+
+GtkToolbar .button:hover { /* needs correct colors */
+    background-image: -gtk-gradient (linear,
+				     left top, left bottom,
+				     from (shade (@bg_color, 0.75)),
+				     color-stop (0.3, shade (@bg_color, 0.9)),
+				     color-stop (0.6, shade (@bg_color, 0.9)),
+				     to (shade (@bg_color, 0.85)));
+}
+
+GtkToolbar .button:active, GtkToolbar .button:active:prelight { /* needs correct colors */
+    border-style: none;
+    border-width: 0;
     background-image: -gtk-gradient (linear,
 				     left top, left bottom,
 				     from (shade (@bg_color, 0.75)),
@@ -334,6 +368,7 @@ GtkToolbar .button:hover {
 				     to (shade (@bg_color, 0.85)));
 }
 
+
 GtkSeparator {
     -GtkSeparator-shadow-type: none;
 }



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