win32: Support frameless entries in theme

This commit is contained in:
Alexander Larsson 2012-03-15 18:23:55 +01:00
parent e0ac492732
commit 1e5a803614

View File

@ -330,19 +330,23 @@ GtkAssistant .sidebar .highlight {
/* Entry */ /* Entry */
/* TODO: For entries with set_has_frame FALSE we should use 'edit, 3 1', not /* We apply the border as a border combined with the background so that
sure how to select for this though */ gtk_entry_set_has_frame works */
.entry { .entry {
background-color: black; border-width: 1px;
border-width: 0; border-style: solid;
background-image: -gtk-win32-theme-part(edit, 1 1); border-image: -gtk-win32-theme-part(edit, 1 1) 1 1 1 1 stretch;
padding: 3px; background-image: -gtk-win32-theme-part(edit, 1 1, margins(-1 -1 -1 -1));
padding: 2px;
} }
.entry:insensitive { .entry:insensitive {
background-image: -gtk-win32-theme-part(edit, 1 4); 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));
} }
.entry:prelight { .entry:prelight {
background-image: -gtk-win32-theme-part(edit, 1 4); 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));
} }
/* Spinbuttons */ /* Spinbuttons */