Bug 787654 - Zune and Royale have wrong window color with draw in title bar. r+ui-r=andreasn
DONTBUILD
--- a/mail/themes/qute/mail/mailWindow1.css
+++ b/mail/themes/qute/mail/mailWindow1.css
@@ -422,16 +422,38 @@ treechildren::-moz-tree-cell-text(subjec
background-color: #D6D8E1;
}
#messengerWindow[tabsintitlebar]:-moz-window-inactive {
background-color: #E8E9F1;
}
}
+/* Royale needs special colors. Default is grey */
+@media (-moz-windows-theme: royale) {
+ #messengerWindow[tabsintitlebar] {
+ background-color: #3472C5;
+ }
+
+ #messengerWindow[tabsintitlebar]:-moz-window-inactive {
+ background-color: #83B7E2;
+ }
+}
+
+/* Zune needs special colors. Default is grey */
+@media (-moz-windows-theme: zune) {
+ #messengerWindow[tabsintitlebar] {
+ background-color: #343434;
+ }
+
+ #messengerWindow[tabsintitlebar]:-moz-window-inactive {
+ background-color: #4B4B4B;
+ }
+}
+
#messengerWindow[tabsintitlebar]:-moz-lwtheme {
background-color: transparent;
}
#titlebar {
-moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox");
}
@@ -482,16 +504,20 @@ treechildren::-moz-tree-cell-text(subjec
#titlebar-close {
-moz-appearance: -moz-window-button-close;
}
#messengerWindow[tabsintitlebar] .titlebar-placeholder[type="caption-buttons"] {
margin-left: 10px; /* additional space for Aero Snap */
}
+#messengerWindow:not([tabsintitlebar]) .titlebar-placeholder {
+ visibility: collapse;
+}
+
/* Window titlebar drawn by TB. So needs border like system windows */
#messengerWindow[sizemode="normal"] > #titlebar > #titlebar-content {
border-top: 3px solid;
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight ActiveBorder;
}
#messengerWindow[sizemode="normal"] #titlebar-buttonbox {
margin-top: -3px;
@@ -517,16 +543,24 @@ treechildren::-moz-tree-cell-text(subjec
@media (-moz-windows-theme: luna-silver) {
#messengerWindow[sizemode="normal"] > #titlebar > #titlebar-content {
-moz-border-top-colors: rgba(0, 0, 0, .4) rgba(255, 255, 255, .3)
rgba(255, 255, 255, .2);
}
}
+@media (-moz-windows-theme: zune),
+ (-moz-windows-theme: royale) {
+ #messengerWindow[sizemode="normal"] > #titlebar > #titlebar-content {
+ -moz-border-top-colors: rgba(0, 0, 0, .4) rgba(255, 255, 255, .3)
+ rgba(255, 255, 255, .2) !important;
+ }
+}
+
/* Black on dark background doesn't look good */
@media (-moz-windows-theme: luna-blue),
(-moz-windows-theme: royale),
(-moz-windows-theme: zune) {
#messengerWindow[tabsintitlebar] menubar:not(:-moz-lwtheme) > menu {
color: white;
}
}