Bug 1427865 - Restore the dialogheader binding and its styling after the removal in bug 1419600. rs=jorgk
authorRichard Marti <richard.marti@gmail.com>
Wed, 03 Jan 2018 22:36:28 +0100
changeset 22975 4821a86a55d2bd707fb0c1a7bc52a9fdb096dad3
parent 22974 454eb3e4fa5e77f2a52f1db213cbc30624573467
child 22976 b9d14117cde47a1db4db8940c838a1fedbe2a540
push id13907
push usermozilla@jorgk.com
push dateThu, 04 Jan 2018 10:09:08 +0000
treeherdercomm-central@b2d833012dd9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk
bugs1427865, 1419600
Bug 1427865 - Restore the dialogheader binding and its styling after the removal in bug 1419600. rs=jorgk
common/bindings/generalBindings.xml
mail/themes/linux/mail/accountManage.css
mail/themes/osx/mail/accountManage.css
mail/themes/windows/mail/accountManage.css
--- a/common/bindings/generalBindings.xml
+++ b/common/bindings/generalBindings.xml
@@ -33,9 +33,20 @@
       <property name="image"
                 onget="return this.getAttribute('image');"
                 onset="this.setAttribute('image',val); return val;"/>
       <property name="src"
                 onget="return this.getAttribute('src');"
                 onset="this.setAttribute('src',val); return val;"/>
     </implementation>
   </binding>
+
+  <binding id="dialogheader">
+    <resources>
+      <stylesheet src="chrome://global/skin/dialog.css"/>
+    </resources>
+    <content>
+      <xul:label class="dialogheader-title" xbl:inherits="value=title,crop" crop="right" flex="1"/>
+      <xul:label class="dialogheader-description" xbl:inherits="value=description"/>
+    </content>
+  </binding>
+
 </bindings>
--- a/mail/themes/linux/mail/accountManage.css
+++ b/mail/themes/linux/mail/accountManage.css
@@ -71,8 +71,25 @@ treechildren::-moz-tree-image(folderName
 
 #smtpServerInfoBox textbox {
   background-color: transparent;
 }
 
 #archiveTree > treechildren {
   background-color: -moz-Field;
 }
+
+/* ::::: dialog header ::::: */
+
+dialogheader {
+  -moz-binding: url("chrome://messenger/content/generalBindings.xml#dialogheader");
+  margin: 0 5px 5px;
+  border: 1px solid ThreeDDarkShadow;
+  padding: 5px 8px;
+  background-color: Highlight;
+  color: HighlightText;
+}
+
+.dialogheader-title {
+  margin: 0 !important;
+  font-size: larger;
+  font-weight: bold;
+}
--- a/mail/themes/osx/mail/accountManage.css
+++ b/mail/themes/osx/mail/accountManage.css
@@ -82,8 +82,27 @@ button:not(.spinbuttons-button):not(.dia
 
 description {
   margin: 4px 4px 8px;
 }
 
 #archiveTree > treechildren {
   background-color: #FFFFFF;
 }
+
+/* ::::: dialog header ::::: */
+
+dialogheader {
+  -moz-binding: url("chrome://messenger/content/generalBindings.xml#dialogheader");
+  margin: 0 5px 5px;
+  padding: 5px 8px;
+}
+
+.dialogheader-title {
+  margin: 0 !important;
+  font-size: larger;
+  font-weight: bold;
+  display: none;
+}
+
+.dialogheader-description {
+  font-weight: bold !important;
+}
--- a/mail/themes/windows/mail/accountManage.css
+++ b/mail/themes/windows/mail/accountManage.css
@@ -71,8 +71,25 @@ treechildren::-moz-tree-image(folderName
 
 #smtpServerInfoBox textbox {
   background-color: transparent;
 }
 
 #archiveTree > treechildren {
   background-color: -moz-Field;
 }
+
+/* ::::: dialog header ::::: */
+
+dialogheader {
+  -moz-binding: url("chrome://messenger/content/generalBindings.xml#dialogheader");
+  margin: 0 5px 5px;
+  border: 1px solid ThreeDDarkShadow;
+  padding: 5px 8px;
+  background-color: Highlight;
+  color: HighlightText;
+}
+
+.dialogheader-title {
+  margin: 0 !important;
+  font-size: larger;
+  font-weight: bold;
+}