Bug 1519664 - Fix the menulist[editable="true"] dropmarker on macOS. r=philipp DONTBUILD
authorRichard Marti <richard.marti@gmail.com>
Mon, 17 Dec 2018 20:21:47 +0100
changeset 33422 2c5f5704fa2f
parent 33421 d12f961a202e
child 33423 a33001c055c0
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp
bugs1519664
Bug 1519664 - Fix the menulist[editable="true"] dropmarker on macOS. r=philipp DONTBUILD
calendar/base/themes/osx/dialogs/calendar-event-dialog.css
mail/themes/osx/jar.mn
mail/themes/osx/mail/icons/menulist-dropmarker.svg
mail/themes/osx/mail/menulist.css
--- a/calendar/base/themes/osx/dialogs/calendar-event-dialog.css
+++ b/calendar/base/themes/osx/dialogs/calendar-event-dialog.css
@@ -8,8 +8,18 @@
 
 #keepduration-button {
     padding: 3px 6px;
 }
 
 #timezone-endtime {
     margin-inline-start: 15px;
 }
+
+hbox > #link-image-top {
+    margin-top: 1.2em;
+    margin-bottom: -1.2em;
+}
+
+vbox > #link-image-bottom {
+    margin-top: -1.2em;
+    margin-bottom: 1.2em;
+}
--- a/mail/themes/osx/jar.mn
+++ b/mail/themes/osx/jar.mn
@@ -148,16 +148,17 @@ classic.jar:
   skin/classic/messenger/icons/dot.svg                           (mail/icons/dot.svg)
   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)
   skin/classic/messenger/icons/exclude.png                       (mail/icons/exclude.png)
   skin/classic/messenger/icons/exclude-selected.png              (mail/icons/exclude-selected.png)
   skin/classic/messenger/icons/group-background.gif              (mail/icons/group-background.gif)
+  skin/classic/messenger/icons/menulist-dropmarker.svg           (mail/icons/menulist-dropmarker.svg)
   skin/classic/messenger/icons/multicolor.png                    (mail/icons/multicolor.png)
   skin/classic/messenger/icons/secure.png                        (mail/icons/secure.png)
   skin/classic/messenger/icons/server.png                        (mail/icons/server.png)
   skin/classic/messenger/icons/server@2x.png                     (mail/icons/server@2x.png)
   skin/classic/messenger/icons/spring.png                        (mail/icons/spring.png)
   skin/classic/messenger/icons/chat-16@2x.png                    (mail/icons/chat-16@2x.png)
   skin/classic/messenger/icons/insecure.png                      (mail/icons/insecure.png)
   skin/classic/messenger/icons/identity.png                      (mail/icons/identity.png)
new file mode 100644
--- /dev/null
+++ b/mail/themes/osx/mail/icons/menulist-dropmarker.svg
@@ -0,0 +1,6 @@
+<!-- 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="8" height="6" viewBox="0 0 8 6">
+  <path fill="context-fill" d="M4 5.8c-.26 0-.5-.12-.7-.3l-3-3C-.38 1.6.8.12 1.7.72L4 3 6.3.72c.9-.68 2.1.88 1.4 1.78l-3 3a1 1 0 0 1-.7.3z"/>
+</svg>
--- a/mail/themes/osx/mail/menulist.css
+++ b/mail/themes/osx/mail/menulist.css
@@ -17,8 +17,17 @@ menulist[editable="true"] > menupopup > 
   display: none;
 }
 
 menulist[editable="true"] > menupopup > menuitem[checked="true"]::before,
 menulist[editable="true"] > menupopup > menuitem[selected="true"]::before {
   display: none;
   margin-inline-start: 0;
 }
+
+menulist[editable="true"] > .menulist-dropmarker {
+  -moz-appearance: none;
+  display: -moz-box;
+  padding-inline-start: 5px;
+  list-style-image: url(chrome://messenger/skin/icons/menulist-dropmarker.svg);
+  -moz-context-properties: fill;
+  fill: currentColor;
+}