[gtk+] win32: Fix up theme for menus on XP
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] win32: Fix up theme for menus on XP
- Date: Thu, 15 Mar 2012 20:14:34 +0000 (UTC)
commit e0ac4927325c59e90ab3b91a4084b15ecfcff2e5
Author: Alexander Larsson <alexl redhat com>
Date: Thu Mar 15 17:40:06 2012 +0100
win32: Fix up theme for menus on XP
gtk/gtk-win32-base.css | 20 +++++++++++++++++++-
gtk/gtk-win32-xp.css | 18 ++++++++++++++++++
gtk/gtk-win32.css | 15 ---------------
3 files changed, 37 insertions(+), 16 deletions(-)
---
diff --git a/gtk/gtk-win32-base.css b/gtk/gtk-win32-base.css
index 7dd6e7e..cf73cab 100644
--- a/gtk/gtk-win32-base.css
+++ b/gtk/gtk-win32-base.css
@@ -730,4 +730,22 @@ GtkSwitch.trough {
GtkSwitch.trough:active {
background-image: -gtk-win32-theme-part(button, 1 2);
-}
\ No newline at end of file
+}
+
+/* Menus */
+
+.menu {
+ background-color: -gtk-win32-color(button, 4);
+ border-color: shade (-gtk-win32-color(button, 4), 0.6);
+ border-style: solid;
+ border-width: 1px;
+ padding: 2px;
+}
+
+.menuitem {
+ color: -gtk-win32-color(button, 7);
+}
+
+.menubar > .menuitem {
+ padding: 3px 5px;
+}
diff --git a/gtk/gtk-win32-xp.css b/gtk/gtk-win32-xp.css
index d07fcf7..70ee862 100644
--- a/gtk/gtk-win32-xp.css
+++ b/gtk/gtk-win32-xp.css
@@ -1,5 +1,23 @@
@import url("gtk-win32-base.css");
+.menubar {
+ background-color: #f7f7f7;
+ /*background-color: -gtk-win32-color(button, 30);*/
+
+ border-width: 0 0 1px 0;
+ border-style: solid;
+ border-color: #ded3bd;
+}
+
+.menu > .menuitem:prelight {
+ background-color: -gtk-win32-color(button, 29);
+}
+
+.menubar > .menuitem:prelight,
+.menubar > .menuitem:prelight:focused {
+ background-image: -gtk-win32-theme-part(toolbar, 1 2);
+}
+
.notebook {
background-image: -gtk-win32-theme-part(tab, 9 1, margins(-1 -3 -3 -1));
border-image: -gtk-win32-theme-part(tab, 9 1, margins(0 -2 -2 0)) 1 1 1 1 repeat;
diff --git a/gtk/gtk-win32.css b/gtk/gtk-win32.css
index c3a216e..f8d774f 100644
--- a/gtk/gtk-win32.css
+++ b/gtk/gtk-win32.css
@@ -2,18 +2,6 @@
/* Menus */
-.menu {
- background-color: -gtk-win32-color(button, 4);
- border-color: shade (-gtk-win32-color(button, 4), 0.6);
- border-style: solid;
- border-width: 1px;
- padding: 2px;
-}
-
-.menuitem {
- color: -gtk-win32-color(button, 7);
-}
-
.menubar {
background-color: transparent;
border-width: 0;
@@ -24,12 +12,9 @@
background-color: transparent;
border-width: 0;
background-image: -gtk-win32-theme-part(menu, 8 1);
- padding: 3px 5px;
}
.menubar > .menuitem:prelight {
- background-color: transparent;
- border-width: 0;
background-image: -gtk-win32-theme-part(menu, 8 3);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]