win32: Fix up theme for menus on XP

This commit is contained in:
Alexander Larsson 2012-03-15 17:40:06 +01:00
parent 0a439fa162
commit e0ac492732
3 changed files with 37 additions and 16 deletions

View File

@ -730,4 +730,22 @@ GtkSwitch.trough {
GtkSwitch.trough:active {
background-image: -gtk-win32-theme-part(button, 1 2);
}
}
/* 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;
}

View File

@ -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;

View File

@ -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);
}