[gtk+] win32: Fix entry theming



commit dc1510c53dbc6cc7fcc743b3afd31eb2ca3d3317
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Mar 15 19:02:59 2012 +0100

    win32: Fix entry theming

 gtk/gtk-win32-base.css |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtk-win32-base.css b/gtk/gtk-win32-base.css
index 9cdab97..30a37f5 100644
--- a/gtk/gtk-win32-base.css
+++ b/gtk/gtk-win32-base.css
@@ -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);
 }



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