[gtk+] win32: Support frameless entries in theme
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] win32: Support frameless entries in theme
- Date: Thu, 15 Mar 2012 20:14:39 +0000 (UTC)
commit 1e5a803614806b0a5de262644573900ebfa3ae7b
Author: Alexander Larsson <alexl redhat com>
Date: Thu Mar 15 18:23:55 2012 +0100
win32: Support frameless entries in theme
gtk/gtk-win32-base.css | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtk-win32-base.css b/gtk/gtk-win32-base.css
index cf73cab..9cdab97 100644
--- a/gtk/gtk-win32-base.css
+++ b/gtk/gtk-win32-base.css
@@ -330,19 +330,23 @@ GtkAssistant .sidebar .highlight {
/* Entry */
-/* TODO: For entries with set_has_frame FALSE we should use 'edit, 3 1', not
- sure how to select for this though */
+/* We apply the border as a border combined with the background so that
+ gtk_entry_set_has_frame works */
+
.entry {
- background-color: black;
- border-width: 0;
- background-image: -gtk-win32-theme-part(edit, 1 1);
- padding: 3px;
+ 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));
+ padding: 2px;
}
.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 {
- 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]