[gtk+] win32-theme: Make tabs look better



commit 03b7bb6e295bf16b19193da94f346c5d61859ab3
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Nov 28 10:06:38 2011 +0100

    win32-theme: Make tabs look better

 gtk/gtk-win32.css |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtk-win32.css b/gtk/gtk-win32.css
index 7b60a6b..fa30883 100644
--- a/gtk/gtk-win32.css
+++ b/gtk/gtk-win32.css
@@ -589,10 +589,14 @@ GtkComboBox.combobox-entry .button:insensitive {
 
 .notebook {
     background-color: none;
-    border-width: 0;
-    background-image: -gtk-win32-theme-part(tab, 9 1);
+    border-width: 1 3 2 2;
+    border-style: solid;
+    background-origin: padding-box;
+    background-clip: border-box;
+    /*background-image: -gtk-win32-theme-part(tab, 9 1, margins(-2)); */
+    border-image: -gtk-win32-theme-part(tab, 9 1) 1 3 2 2 stretch;
     -GtkNotebook-tab-overlap: 1;
-    -GtkNotebook-tab-curvature: 1;
+    -GtkNotebook-tab-curvature: 0;
 }
 
 .notebook tab {
@@ -602,10 +606,18 @@ GtkComboBox.combobox-entry .button:insensitive {
 }
 
 .notebook tab:active {
-    background-image: -gtk-win32-theme-part(tab, 1 3);
+    background-image: -gtk-win32-theme-part(tab, 1 3, margins(0 0 -1 0));
     padding: 4;
 }
 
+.notebook tab:last-child {
+    background-image: -gtk-win32-theme-part(tab, 3 1);
+}
+
+.notebook tab:active:last-child {
+    background-image: -gtk-win32-theme-part(tab, 3 3, margins(0 0 -1 0));
+}
+
 .notebook {
     background-color: #ffffff;
 }



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