Bug 652670 - treerows in disabled trees shouldn't be selectable in Aero theme; r=bwinton
authorRichard Marti <richard.marti@gmail.com>
Wed, 04 May 2011 09:01:40 +0100
changeset 7685 5a5d809c944afb6c8b7d0e0366653ed949a42ba1
parent 7684 548d10bdab86bf784bc9cb7dbb26b97a68e2b77a
child 7686 7f684b5a41a83fa02004454c9b361a3f893a5215
push idunknown
push userunknown
push dateunknown
reviewersbwinton
bugs652670
Bug 652670 - treerows in disabled trees shouldn't be selectable in Aero theme; r=bwinton
mail/themes/qute/mail/messenger-aero.css
--- a/mail/themes/qute/mail/messenger-aero.css
+++ b/mail/themes/qute/mail/messenger-aero.css
@@ -58,19 +58,35 @@
   }
 
   listitem[selected="true"][current="true"],
   treechildren::-moz-tree-row(selected, focus),
   treechildren::-moz-tree-row(dummy, selected, focus) {
     background-image: -moz-linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.6)) !important;
   }
 
+  tree[disabled="true"] > treechildren::-moz-tree-row {
+    background: none !important;
+    -moz-border-top-colors: transparent !important;
+    -moz-border-right-colors: transparent !important;
+    -moz-border-left-colors: transparent !important;
+    -moz-border-bottom-colors: transparent !important;
+  }
+
+  tree[disabled="true"] > treechildren::-moz-tree-twisty(open) {
+    list-style-image: url("chrome://global/skin/tree/twisty-open.png");
+  }
+
+  tree[disabled="true"] > treechildren:-moz-locale-dir(rtl)::-moz-tree-twisty(open) {
+    list-style-image: url("chrome://global/skin/tree/twisty-open-rtl.png");
+  }
+
   treechildren::-moz-tree-cell-text {
     border-color: transparent;
-	background-color: transparent;
+    background-color: transparent;
   }
 
   listitem[selected="true"][current="true"],
   treechildren::-moz-tree-cell-text(selected, focus) {
     color: -moz-DialogText;
   }
 }