]> Pileus Git - ~andy/gtk/commitdiff
win32: Fix entry theming
authorAlexander Larsson <alexl@redhat.com>
Thu, 15 Mar 2012 18:02:59 +0000 (19:02 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 15 Mar 2012 20:12:35 +0000 (21:12 +0100)
gtk/gtk-win32-base.css

index 9cdab970ca4d1c038e190197aa91e0693b1f759e..30a37f580fdfd3f5c0b55c27584593606a06d0a1 100644 (file)
@@ -336,17 +336,22 @@ GtkAssistant .sidebar .highlight {
 .entry {
     border-width: 1px;
     border-style: solid;
-    border-image: -gtk-win32-theme-part(edit, 1 1)  1 1 1 1 stretch;
-    background-image: -gtk-win32-theme-part(edit, 1 1, margins(-1 -1 -1 -1));
+    border-image: -gtk-win32-theme-part(edit, 6 1)  1 1 1 1 stretch;
+    background-image: -gtk-win32-theme-part(edit, 6 1, margins(-1 -1 -1 -1));
     padding: 2px;
 }
 .entry:insensitive {
-    border-image: -gtk-win32-theme-part(edit, 1 4)  1 1 1 1 stretch;
-    background-image: -gtk-win32-theme-part(edit, 1 4, margins(-1 -1 -1 -1));
+    border-image: -gtk-win32-theme-part(edit, 6 4)  1 1 1 1 stretch;
+    background-image: -gtk-win32-theme-part(edit, 6 4, margins(-1 -1 -1 -1));
+    color: #a7aba7;
 }
 .entry:prelight {
-    border-image: -gtk-win32-theme-part(edit, 1 2)  1 1 1 1 stretch;
-    background-image: -gtk-win32-theme-part(edit, 1 2, margins(-1 -1 -1 -1));
+    border-image: -gtk-win32-theme-part(edit, 6 2)  1 1 1 1 stretch;
+    background-image: -gtk-win32-theme-part(edit, 6 2, margins(-1 -1 -1 -1));
+}
+.entry:focused {
+    border-image: -gtk-win32-theme-part(edit, 6 3)  1 1 1 1 stretch;
+    background-image: -gtk-win32-theme-part(edit, 6 3, margins(-1 -1 -1 -1));
 }
 
 /* Spinbuttons */
@@ -569,13 +574,15 @@ GtkProgressBar.trough {
 }
 
 GtkProgressBar.progressbar,
-GtkEntry.progressbar {
+GtkEntry.progressbar,
+GtkEntry.progressbar:focused {
     border-width: 0;
     background-image: -gtk-win32-theme-part(progress, 5 1);
 }
 
 GtkProgressBar.progressbar.pulse,
-GtkEntry.progressbar.pulse {
+GtkEntry.progressbar.pulse,
+GtkEntry.progressbar.pulse:focused {
     background-color: transparent;
     background-image: -gtk-win32-theme-part(progress, 8 1);
 }