bug 581382 - apply Persona/lwtheme correctly to sidebar headers, r=Neil+stefanh
authorRobert Kaiser <kairo@kairo.at>
Sat, 25 Sep 2010 15:56:39 +0200
changeset 6424 42683c5b4db363c0ffa4b23fb97c61b183dddb34
parent 6423 a2d109f74af37e5b5472366dacee8f457deaad17
child 6425 ea410ea7805e6fc3e1a7c57d1cbcdb17c15fc652
push idunknown
push userunknown
push dateunknown
reviewersNeil
bugs581382
bug 581382 - apply Persona/lwtheme correctly to sidebar headers, r=Neil+stefanh
suite/themes/classic/communicator/sidebar/sidebar.css
suite/themes/classic/mac/communicator/sidebar/sidebar.css
--- a/suite/themes/classic/communicator/sidebar/sidebar.css
+++ b/suite/themes/classic/communicator/sidebar/sidebar.css
@@ -43,30 +43,41 @@
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
   
 #sidebar-box {
   border-left: 1px solid ThreeDShadow;
   border-right: 1px solid ThreeDHighlight;
   background-color: AppWorkspace;
 }
 
+#sidebar-box:-moz-lwtheme {
+  background-color: transparent;
+}
+
 /* ::::: sidebar header ::::: */
 
 .sidebarheader-main {
   -moz-appearance: toolbar;
   border: 1px outset InactiveCaption;
   background-color: InactiveCaption;
   color: CaptionText;
   padding-top: 1px;
   padding-bottom: 1px;
   -moz-padding-start: 6px;
   -moz-padding-end: 2px;
 }
 
-#sidebar-panel-picker {
+.sidebarheader-main:-moz-lwtheme {
+  -moz-appearance: none;
+  background-color: transparent;
+  color: inherit;
+}
+
+#sidebar-panel-picker:not(:-moz-lwtheme) {
+  /* would override hover/active styles, so let lwtheme do it in its own way */
   color: inherit;
 }
 
 #sidebar-panel-picker > .toolbarbutton-dropmarker {
   padding: 0 2px;
   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
 }
 
@@ -119,16 +130,20 @@
 .box-texttab {
   -moz-binding: url("chrome://communicator/skin/sidebar/sidebarBindings.xml#sbtab");
   -moz-box-align: center;
   cursor: pointer;
   background-color: -moz-Dialog;
   color: -moz-DialogText;
 }
 
+.box-texttab:-moz-lwtheme {
+  text-shadow: none;
+}
+
 .box-texttab,
 .box-texttab[selected="true"],
 .box-texttab[selected="true"]:hover,
 .box-texttab[selected="true"]:hover:active {
   border: 2px solid;
   -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
   -moz-border-right-colors: ThreeDShadow ThreeDLightShadow;
   -moz-border-bottom-colors: ThreeDShadow  ThreeDLightShadow;
--- a/suite/themes/classic/mac/communicator/sidebar/sidebar.css
+++ b/suite/themes/classic/mac/communicator/sidebar/sidebar.css
@@ -43,30 +43,41 @@
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
   
 #sidebar-box {
   border-left: 1px solid ThreeDShadow;
   border-right: 1px solid ThreeDHighlight;
   background-color: AppWorkspace;
 }
 
+#sidebar-box:-moz-lwtheme {
+  background-color: transparent;
+}
+
 /* ::::: sidebar header ::::: */
 
 .sidebarheader-main {
   -moz-appearance: toolbar;
   border: 1px outset InactiveCaption;
   background-color: InactiveCaption;
   color: CaptionText;
   padding-top: 1px;
   padding-bottom: 1px;
   -moz-padding-start: 6px;
   -moz-padding-end: 2px;
 }
 
-#sidebar-panel-picker {
+.sidebarheader-main:-moz-lwtheme {
+  -moz-appearance: none;
+  background-color: transparent;
+  color: inherit;
+}
+
+#sidebar-panel-picker:not(:-moz-lwtheme) {
+  /* would override hover/active styles, so let lwtheme do it in its own way */
   color: inherit;
 }
 
 #sidebar-panel-picker > .toolbarbutton-dropmarker {
   padding: 0 2px;
   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
 }