Bug 1494595 - Add a selected attachment icon to make it visible on High Contrast themes. r+a=jorgk THUNDERBIRD_60_2_1_BUILD1 THUNDERBIRD_60_2_1_RELEASE
authorRichard Marti <richard.marti@gmail.com>
Sun, 30 Sep 2018 20:02:41 +0200
changeset 31837 5cdee4ae33c0868ae420a5a826c63b42d823c584
parent 31836 92e42fc308f00260956a3650ebe95067a20e46f5
child 31838 edf8a3fe4c60d61eea83e3b267e2d32f5477d2e3
push id83
push usermozilla@jorgk.com
push dateSun, 30 Sep 2018 22:36:27 +0000
treeherdercomm-esr60@5cdee4ae33c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1494595
Bug 1494595 - Add a selected attachment icon to make it visible on High Contrast themes. r+a=jorgk
mail/themes/linux/mail/messageIcons.css
mail/themes/osx/jar.mn
mail/themes/osx/mail/icons/attachment-selected.svg
mail/themes/shared/jar.inc.mn
mail/themes/shared/mail/icons/attachment-selected.svg
mail/themes/windows/mail/messageIcons.css
--- a/mail/themes/linux/mail/messageIcons.css
+++ b/mail/themes/linux/mail/messageIcons.css
@@ -62,16 +62,20 @@ treechildren::-moz-tree-image(unreadButt
   fill: currentColor;
 }
 
 treechildren::-moz-tree-image(attachmentCol, attach) {
   list-style-image: url(chrome://messenger/skin/icons/attachment-col.svg);
   padding-inline-start: 6px;
 }
 
+treechildren::-moz-tree-image(attachmentCol, attach, selected) {
+  list-style-image: url(chrome://messenger/skin/icons/attachment-selected.svg);
+}
+
 /* ..... flag column ..... */
 
 .flagColumnHeader {
   list-style-image: url(chrome://messenger/skin/icons/flag-col.svg);
   padding-inline-end: 3px;
 }
 
 treechildren::-moz-tree-image(flaggedCol) {
--- a/mail/themes/osx/jar.mn
+++ b/mail/themes/osx/jar.mn
@@ -141,17 +141,16 @@ classic.jar:
   skin/classic/messenger/smime/icons/hdrSignOk.png               (mail/smime/hdrSignOk.png)
   skin/classic/messenger/smime/icons/hdrSignUnknown.png          (mail/smime/hdrSignUnknown.png)
   skin/classic/messenger/smime/icons/hdrSignNotOk.png            (mail/smime/hdrSignNotOk.png)
   skin/classic/messenger/smime/icons/hdrCryptoOk.png             (mail/smime/hdrCryptoOk.png)
   skin/classic/messenger/smime/icons/hdrCryptoNotOk.png          (mail/smime/hdrCryptoNotOk.png)
   skin/classic/messenger/icons/twisty-open.gif                   (mail/icons/twisty-open.gif)
   skin/classic/messenger/icons/attachment-deleted.png            (mail/icons/attachment-deleted.png)
   skin/classic/messenger/icons/attachment-deleted-large.png      (mail/icons/attachment-deleted-large.png)
-  skin/classic/messenger/icons/attachment-selected.svg           (mail/icons/attachment-selected.svg)
   skin/classic/messenger/icons/check.png                         (mail/icons/check.png)
   skin/classic/messenger/icons/dot.png                           (mail/icons/dot.png)
   skin/classic/messenger/icons/column-headers.png                (mail/icons/column-headers.png)
   skin/classic/messenger/icons/column-headers@2x.png             (mail/icons/column-headers@2x.png)
   skin/classic/messenger/icons/flag-col.png                      (mail/icons/flag-col.png)
   skin/classic/messenger/icons/flaggedmail.png                   (mail/icons/flaggedmail.png)
   skin/classic/messenger/icons/folder-pane.png                   (mail/icons/folder-pane.png)
   skin/classic/messenger/icons/folder-pane@2x.png                (mail/icons/folder-pane@2x.png)
deleted file mode 100644
--- a/mail/themes/osx/mail/icons/attachment-selected.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
-  <path fill="HighlightText" d="M11 10V4c0-.28-.22-.5-.5-.5s-.5.22-.5.5v6zM6 5v4H5V5c0-.28.22-.5.5-.5s.5.22.5.5zM3 3c0-1.66 1.34-3 3-3s3 1.34 3 3v6H8V4H4v6H3zm3 6c0 .55.45 1 1 1s1-.45 1-1h1c0 1.1-.9 2-2 2s-2-.9-2-2zm-2 1c0 1.66 1.34 3 3 3s3-1.34 3-3h1c0 2.2-1.8 4-4 4s-4-1.8-4-4zm0-7v1h4V3zm4 0c0-1.1-.9-2-2-2s-2 .9-2 2z"/>
-</svg>
--- a/mail/themes/shared/jar.inc.mn
+++ b/mail/themes/shared/jar.inc.mn
@@ -17,16 +17,17 @@
   skin/classic/messenger/icons/addlist.svg                    (../shared/mail/icons/addlist.svg)
   skin/classic/messenger/icons/accounts.svg                   (../shared/mail/icons/accounts.svg)
   skin/classic/messenger/icons/appbutton.svg                  (../shared/mail/icons/appbutton.svg)
   skin/classic/messenger/icons/archive.svg                    (../shared/mail/icons/archive.svg)
   skin/classic/messenger/icons/arrow-dropdown.svg             (../shared/mail/icons/arrow-dropdown.svg)
   skin/classic/messenger/icons/arrow-left.svg                 (../shared/mail/icons/arrow-left.svg)
   skin/classic/messenger/icons/attach.svg                     (../shared/mail/icons/attach.svg)
   skin/classic/messenger/icons/attachment-col.svg             (../shared/mail/icons/attachment-col.svg)
+  skin/classic/messenger/icons/attachment-selected.svg        (../shared/mail/icons/attachment-selected.svg)
   skin/classic/messenger/icons/blacklist.svg                  (../shared/mail/icons/blacklist.svg)
   skin/classic/messenger/icons/cert-error.svg                 (../shared/mail/icons/cert-error.svg)
   skin/classic/messenger/icons/chat.svg                       (../shared/mail/icons/chat.svg)
   skin/classic/messenger/icons/copy.svg                       (../shared/mail/icons/copy.svg)
   skin/classic/messenger/icons/cut.svg                        (../shared/mail/icons/cut.svg)
   skin/classic/messenger/icons/correspondents.svg             (../shared/mail/icons/correspondents.svg)
   skin/classic/messenger/icons/compact.svg                    (../shared/mail/icons/compact.svg)
   skin/classic/messenger/icons/conversation.svg               (../shared/mail/icons/conversation.svg)
new file mode 100644
--- /dev/null
+++ b/mail/themes/shared/mail/icons/attachment-selected.svg
@@ -0,0 +1,7 @@
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
+  <path fill="HighlightText" d="M11 10V4c0-.28-.22-.5-.5-.5s-.5.22-.5.5v6zM6 5v4H5V5c0-.28.22-.5.5-.5s.5.22.5.5zM3 3c0-1.66 1.34-3 3-3s3 1.34 3 3v6H8V4H4v6H3zm3 6c0 .55.45 1 1 1s1-.45 1-1h1c0 1.1-.9 2-2 2s-2-.9-2-2zm-2 1c0 1.66 1.34 3 3 3s3-1.34 3-3h1c0 2.2-1.8 4-4 4s-4-1.8-4-4zm0-7v1h4V3zm4 0c0-1.1-.9-2-2-2s-2 .9-2 2z"/>
+</svg>
--- a/mail/themes/windows/mail/messageIcons.css
+++ b/mail/themes/windows/mail/messageIcons.css
@@ -64,16 +64,22 @@ treechildren::-moz-tree-image(unreadButt
   fill: currentColor;
 }
 
 treechildren::-moz-tree-image(attachmentCol, attach) {
   margin-inline-start: 3px;
   list-style-image: url(chrome://messenger/skin/icons/attachment-col.svg);
 }
 
+@media (-moz-windows-default-theme: 0) {
+  treechildren::-moz-tree-image(attachmentCol, attach, selected) {
+    list-style-image: url(chrome://messenger/skin/icons/attachment-selected.svg);
+  }
+}
+
 /* ..... flag column ..... */
 
 .flagColumnHeader {
   list-style-image: url(chrome://messenger/skin/icons/flag-col.svg);
 }
 
 treechildren::-moz-tree-image(flaggedCol) {
   list-style-image: url(chrome://messenger/skin/icons/flag-empty.png);