[gtk+] W32: give scrollbar slider active and insensitive styles



commit 3a806b97c9549afc064d7fb40c40a91b410070fd
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Mon Mar 31 15:54:09 2014 +0000

    W32: give scrollbar slider active and insensitive styles
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727391

 gtk/resources/theme/gtk-win32-base.css |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/gtk/resources/theme/gtk-win32-base.css b/gtk/resources/theme/gtk-win32-base.css
index 0516ade..2b9970c 100644
--- a/gtk/resources/theme/gtk-win32-base.css
+++ b/gtk/resources/theme/gtk-win32-base.css
@@ -351,6 +351,18 @@ GtkButton.check:active:prelight {
     background-image: -gtk-win32-theme-part(scrollbar, 2 2, over (8 2));
 }
 
+.scrollbar.slider:active {
+    background-image: -gtk-win32-theme-part(scrollbar, 2 3, over (8 3));
+}
+
+.scrollbar.slider:insensitive {
+  /* There's a theme part for "disabled slider", but the only app observed
+     to have a disabled scrollbar (Notepad) does not draw its slider at all
+     when scrollbar is disabled. */
+  background-image: none;
+  background-color: transparent;
+}
+
 .scrollbar.slider.vertical {
     background-image: -gtk-win32-theme-part(scrollbar, 3 1, over (9 1));
 }
@@ -359,6 +371,15 @@ GtkButton.check:active:prelight {
     background-image: -gtk-win32-theme-part(scrollbar, 3 2, over (9 2));
 }
 
+.scrollbar.slider.vertical:active {
+    background-image: -gtk-win32-theme-part(scrollbar, 3 3, over (9 3));
+}
+
+.scrollbar.slider.vertical:insensitive {
+  background-image: none;
+  background-color: transparent;
+}
+
 /* Entry */
 
 /* We apply the border as a border combined with the background so that


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