Bug 787654 - Zune and Royale have wrong window color with draw in title bar. r+ui-r=andreasn
authorRichard Marti <richard.marti@gmail.com>
Sat, 01 Sep 2012 13:46:54 +0200
changeset 11015 156e66fb32696ba3874933f866f181714093e572
parent 11014 402d1697310993b3086f637c13ecd6c80998a9e9
child 11016 42d9d1e6f54837539ae3aba4f6c7489326a79d53
push id8263
push userryanvm@gmail.com
push dateMon, 03 Sep 2012 13:31:40 +0000
treeherdercomm-central@156e66fb3269 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs787654
Bug 787654 - Zune and Royale have wrong window color with draw in title bar. r+ui-r=andreasn DONTBUILD
mail/themes/qute/mail/mailWindow1.css
--- 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;
   }
 }