Bug 449500 - "Use new unified toolbar styling with -moz-appearance in Thunderbird" [r=philringnalda]
authorMarkus Stange <mstange@themasta.com>
Wed, 17 Sep 2008 16:47:32 +0100
changeset 358 a5be1722cde2e05027545ce404d57b79f9e87057
parent 357 930977fe94b057bded6022fa9847ac9535b2acb4
child 359 2554af42cc1d0ec9accfbd1b1b7c892fd28c8d07
push idunknown
push userunknown
push dateunknown
reviewersphilringnalda
bugs449500
Bug 449500 - "Use new unified toolbar styling with -moz-appearance in Thunderbird" [r=philringnalda]
mail/themes/pinstripe/mail/addrbook/addressbook.css
mail/themes/pinstripe/mail/compose/messengercompose.css
mail/themes/pinstripe/mail/mailWindow1.css
mail/themes/pinstripe/mail/messenger.css
mail/themes/pinstripe/mail/preferences/preferences.css
mail/themes/pinstripe/mail/primaryToolbar.css
--- a/mail/themes/pinstripe/mail/addrbook/addressbook.css
+++ b/mail/themes/pinstripe/mail/addrbook/addressbook.css
@@ -41,46 +41,32 @@
   ======================================================================= */
 
 @import url("chrome://messenger/skin/");
 @import url("chrome://global/skin/toolbar.css");
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 @namespace html url("http://www.w3.org/1999/xhtml");
 
-#addressbookWindow {
-  -moz-binding: url("chrome://global/skin/globalBindings.xml#unifiedWindow");
-}
-
 /* Inactive window state */
 #addressbookWindow:not([active="true"]) > #ab-toolbox > toolbar {
   border-top-color: rgba(255,255,255,0.45);
   border-bottom-color: rgba(0,0,0,0.35);
   background-color: #cfcfcf;
 }
 
-#addressbookWindow:not([active="true"]) > #ab-toolbox > #ab-bar2 {
-  background-image: url("chrome://global/skin/toolbar/toolbar-background-inactive.png");
-}
-
 
 #ab-bar2 {
-  background-color: #9e9e9e;
-  border-top: none;
-  border-bottom: 1px solid rgba(0,0,0,0.35);
-  background-image: url("chrome://global/skin/toolbar/toolbar-background.gif");
-  background-repeat: repeat-x;
-  background-position: top right;
   padding: 0 4px;
 }
 
 
 toolbox,
 toolbar {
-  -moz-appearance: none !important;
+  -moz-appearance: none;
   background-color: transparent;
   background-image: none;
 }
 
 /* ::::: tools menu icon ::::: */
 
 .icon-mail16 {
   list-style-image: url("chrome://messenger/skin/icons/mail-16.gif");
--- a/mail/themes/pinstripe/mail/compose/messengercompose.css
+++ b/mail/themes/pinstripe/mail/compose/messengercompose.css
@@ -40,45 +40,30 @@
   == Styles for the main Messenger Compose window.
   ======================================================================= */
 
 @import url("chrome://messenger/skin/");
 @import url("chrome://global/skin/toolbar.css");
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
-#msgcomposeWindow {
-  -moz-binding: url("chrome://global/skin/globalBindings.xml#unifiedWindow");
-}
-
 /* Inactive window state */
 #msgcomposeWindow:not([active="true"]) > #compose-toolbox > toolbar {
   border-top-color: rgba(255,255,255,0.45);
   border-bottom-color: rgba(0,0,0,0.35);
   background-color: #cfcfcf;
 }
 
-#msgcomposeWindow:not([active="true"]) > #compose-toolbox > #composeToolbar2 {
-  background-image: url("chrome://global/skin/toolbar/toolbar-background-inactive.png");
-}
-
-
 #composeToolbar2 {
-  background-color: #9e9e9e;
-  border-top: none;
-  border-bottom: 1px solid rgba(0,0,0,0.35);
-  background-image: url("chrome://global/skin/toolbar/toolbar-background.gif");
-  background-repeat: repeat-x;
-  background-position: top right;
   padding: 0 4px;
 }
 
 toolbox,
 toolbar {
-  -moz-appearance: none !important;
+  -moz-appearance: none;
   background-color: transparent;
   background-image: none;
 }
 
 /* ::::: tools menu icons ::::: */
 
 .icon-mail16 {
   list-style-image: url("chrome://messenger/skin/icons/mail-16.gif");
--- a/mail/themes/pinstripe/mail/mailWindow1.css
+++ b/mail/themes/pinstripe/mail/mailWindow1.css
@@ -338,17 +338,16 @@ treechildren::-moz-tree-image(news, thre
 
 #sizeCol,
 #unreadCol,
 #totalCol {
   text-align: right;
 }
 
 #threadPaneBox {
-  margin-top: -1px;
   border-bottom: 1px solid #919191;
 }
 
 /* ::::: group rows ::::: */
 
 treechildren::-moz-tree-row(dummy)  {
   background-image: url("chrome://messenger/skin/icons/group-background.gif");
   background-repeat: repeat-x;
--- a/mail/themes/pinstripe/mail/messenger.css
+++ b/mail/themes/pinstripe/mail/messenger.css
@@ -39,20 +39,16 @@
   == Styles shared throughout the Messenger application.
   ======================================================================= */
 
 @import url("chrome://global/skin/");
 @import url("chrome://messenger/content/messenger.css");
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
-#messengerWindow {
-  -moz-binding: url("chrome://global/skin/globalBindings.xml#unifiedWindow");
-}
-
 description.error {
   color: #FF0000;
 }
 
 .toolbar-primary {
   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
 }
 
--- a/mail/themes/pinstripe/mail/preferences/preferences.css
+++ b/mail/themes/pinstripe/mail/preferences/preferences.css
@@ -34,26 +34,16 @@
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 */
 
-#MailPreferences {
-  -moz-binding: url("chrome://global/skin/globalBindings.xml#unifiedPrefwindow");
-}
-
-#MailPreferences:not([active="true"]) > .paneSelector {
-  background-image: url("chrome://global/skin/toolbar/toolbar-background-tall-inactive.png");
-  background-color: #cfcfcf;
-  border-bottom: 1px solid rgba(0,0,0,0.35);
-}
-
 #MailPreferences:not([active="true"]) > .paneSelector > radio {
   opacity: 0.7;
 }
 
 menulist > menupopup > menuitem {
   font: -moz-pull-down-menu;
 }
  
@@ -63,21 +53,17 @@ prefwindow:not([type="child"]) {
 
 prefpane {
   padding: 12px;
 }
 
 .paneSelector {
   list-style-image: url("chrome://messenger/skin/preferences/mail-options.png");
   padding: 0 5px 2px 5px;
-  background-color: #999;
-  border-bottom: 1px solid #404040;
-  background-image: url("chrome://global/skin/toolbar/toolbar-background-tall.png");
-  background-repeat: repeat-x;
-  background-position: top right;
+  -moz-appearance: -moz-mac-unified-toolbar;
   margin: 0;
 }
 
 .paneSelector radio {
   border-right: 2px solid transparent;
   border-left: 2px solid transparent;
   padding: 5px 0 3px 0;
   margin: 0;
--- a/mail/themes/pinstripe/mail/primaryToolbar.css
+++ b/mail/themes/pinstripe/mail/primaryToolbar.css
@@ -43,27 +43,17 @@
 
 /* Inactive window state */
 #messengerWindow:not([active="true"]) > #mail-toolbox > toolbar {
   border-top-color: rgba(255,255,255,0.45);
   border-bottom-color: rgba(0,0,0,0.35);
   background-color: #cfcfcf;
 }
 
-#messengerWindow:not([active="true"]) > #mail-toolbox > #mail-bar2 {
-  background-image: url("chrome://global/skin/toolbar/toolbar-background-inactive.png");
-}
-
 #mail-bar2 {
-  background-color: #9e9e9e;
-  border-top: none;
-  border-bottom: 1px solid rgba(0,0,0,0.35);
-  background-image: url("chrome://global/skin/toolbar/toolbar-background.gif");
-  background-repeat: repeat-x;
-  background-position: top right;
   padding: 0 4px;
 }
 
 /* ::::: primary toolbar buttons ::::: */
 
 .toolbarbutton-1 {
   -moz-box-orient: vertical;
   min-width: 0px;