From 12fdf165ee14c7815ea08fa7961103bc6b94c64e Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 13 Mar 2012 12:50:30 +0100 Subject: [PATCH] win32: Fix up notebook themeing --- gtk/gtk-win32.css | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/gtk/gtk-win32.css b/gtk/gtk-win32.css index 6b329bdcb..29d9bf0bd 100644 --- a/gtk/gtk-win32.css +++ b/gtk/gtk-win32.css @@ -714,38 +714,44 @@ GtkComboBox.combobox-entry .button:insensitive { /* Notebook */ .notebook { - background-color: @base_color; - border-width: 1px 3px 2px 2px; + background-color: #ffffff; + border-width: 1px 1px 1px 1px; 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; + background-image: -gtk-win32-theme-part(tab, 9 1, margins(-1 -3 -2 -1)); + border-image: -gtk-win32-theme-part(tab, 9 1, margins(0 -2 -1 0)) 1 1 1 1 repeat; -GtkNotebook-tab-overlap: 1; -GtkNotebook-tab-curvature: 0; } .notebook tab { - background-color: transparent; border-width: 0; background-image: -gtk-win32-theme-part(tab, 1 1); + padding: 0px 4px 0px 4px; +} + +.notebook tab.left, .notebook tab.right { + padding: 4px 0px 4px 0px; } .notebook tab:active { background-image: -gtk-win32-theme-part(tab, 1 3, margins(0 0 -1 0)); - padding: 4px; +} +.notebook tab:active.top { + padding: 0px 4px 2px 4px; } -.notebook tab:last-child { - background-image: -gtk-win32-theme-part(tab, 3 1); +.notebook tab:active.bottom { + padding: 0px 4px 2px 4px; } -.notebook tab:active:last-child { - background-image: -gtk-win32-theme-part(tab, 3 3, margins(0 0 -1 0)); +.notebook tab:active.right { + padding: 4px 0px 4px 2px; } -.notebook { - background-color: #ffffff; +.notebook tab:active.left { + padding: 4px 2px 4px 0px; } /* Toolbar */ -- 2.43.2