[gtk+] win32-theme: Fix up radio and menus in various states
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] win32-theme: Fix up radio and menus in various states
- Date: Thu, 24 Nov 2011 10:50:40 +0000 (UTC)
commit 35ffd4cfea9e4a3da559cb51aabd3d05005072f5
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 24 11:40:36 2011 +0100
win32-theme: Fix up radio and menus in various states
This makes all states in widget-factory look ok
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 c761e63..172e3c3 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]