diff options
author | Alexander Larsson <alexl@redhat.com> | 2011-11-24 11:40:36 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2011-11-24 11:50:02 +0100 |
commit | 35ffd4cfea9e4a3da559cb51aabd3d05005072f5 (patch) | |
tree | f166c725fca9b9aa7cc5995f30eae65147b30c1c /gtk/gtk-win32.css | |
parent | c066136c3ad2dba4b303411705bb1d47f7bdf08f (diff) | |
download | gtk+-35ffd4cfea9e4a3da559cb51aabd3d05005072f5.tar.gz |
win32-theme: Fix up radio and menus in various states
This makes all states in widget-factory look ok
Diffstat (limited to 'gtk/gtk-win32.css')
-rw-r--r-- | gtk/gtk-win32.css | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/gtk/gtk-win32.css b/gtk/gtk-win32.css index c761e63931..172e3c3086 100644 --- a/gtk/gtk-win32.css +++ b/gtk/gtk-win32.css @@ -47,7 +47,7 @@ } .check:active:insensitive { - background-image: -gtk-win32-theme-part(button, 1 8); + background-image: -gtk-win32-theme-part(button, 3 8); } .check:active:prelight { @@ -86,18 +86,21 @@ } .radio:active:insensitive { - background-image: -gtk-win32-theme-part(button, 1 8); + background-image: -gtk-win32-theme-part(button, 2 8); } .radio:active:prelight { background-image: -gtk-win32-theme-part(button, 2 6); } - .radio:inconsistent { background-image: -gtk-win32-theme-part(button, 2 1, mix 2 5); } +.radio:inconsistent:insensitive { + background-image: -gtk-win32-theme-part(button, 2 4, mix 2 8); +} + .radio:inconsistent:prelight { background-image: -gtk-win32-theme-part(button, 2 4 , mix 2 6); } @@ -484,7 +487,8 @@ GtkProgressBar.trough.vertical { } .menuitem.radio, -.menuitem.radio:prelight { +.menuitem.radio:prelight, +.menuitem.radio:insensitive { background-image: none; border-width: 0; } @@ -496,20 +500,23 @@ GtkProgressBar.trough.vertical { } .menuitem.radio:inconsistent, -.menuitem.radio:inconsistent:prelight { - background-image: -gtk-win32-theme-part(menu, 11 3, mix 0 0); +.menuitem.radio:inconsistent:insensitive, +.menuitem.radio:inconsistent:prelight, +.menuitem.radio:inconsistent:active, +.menuitem.radio:inconsistent:active:prelight { + background-image: none; /* Fall back to default, this state is not in win32 */ border-width: 0; } -.menuitem.radio:insensitive, -.menuitem.radio:insensitive:prelight{ +.menuitem.radio:insensitive:active, +.menuitem.radio:insensitive:active:prelight { background-image: -gtk-win32-theme-part(menu, 11 4); border-width: 0; } - .menuitem.check, -.menuitem.check:prelight { +.menuitem.check:prelight, +.menuitem.check:insensitive { background-image: none; border-width: 0; } @@ -521,13 +528,16 @@ GtkProgressBar.trough.vertical { } .menuitem.check:inconsistent, -.menuitem.check:inconsistent:prelight { - background-image: -gtk-win32-theme-part(menu, 11 1, mix 0 0); +.menuitem.check:inconsistent:insensitive, +.menuitem.check:inconsistent:prelight, +.menuitem.check:inconsistent:active, +.menuitem.check:inconsistent:active:prelight { + background-image: none; /* Fall back to default, this state is not in win32 */ border-width: 0; } -.menuitem.check:insensitive, -.menuitem.check:insensitive:prelight{ +.menuitem.check:insensitive:active, +.menuitem.check:insensitive:active:prelight{ background-image: -gtk-win32-theme-part(menu, 11 2); border-width: 0; } |