Bug 940872 - Make library window draggable by toolbar on Linux. r=dao
authorRyan Koesters <rmkoesters@gmail.com>
Sat, 06 Aug 2016 13:59:23 +0200
changeset 308503 a159faf4c29b835d89fa6bb002c4d54c12b4ab04
parent 308502 115ec609a6bf1bbc3e06f7cd2caa99e53b51e5d1
child 308504 fa0934fbb4d5e3a189aba0b82b4f3ebb9cb5ee96
push id80347
push userkwierso@gmail.com
push dateSun, 07 Aug 2016 07:17:22 +0000
treeherdermozilla-inbound@d42aacfe34af [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs940872
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 940872 - Make library window draggable by toolbar on Linux. r=dao
browser/themes/linux/places/organizer.css
--- a/browser/themes/linux/places/organizer.css
+++ b/browser/themes/linux/places/organizer.css
@@ -1,16 +1,28 @@
 /* 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/. */
 
 
 /* Toolbar */
 #placesToolbar {
-  border: none;
+  -moz-appearance: menubar;
+}
+
+#placesToolbar:-moz-system-metric(menubar-drag) {
+  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
+}
+
+#placesToolbar > toolbarbutton {
+  color: -moz-menubartext;
+}
+
+#placesToolbar > toolbarbutton:hover {
+  color: ButtonText;
 }
 
 /* back button */
 
 #back-button {
   list-style-image: url("moz-icon://stock/gtk-go-back-ltr?size=toolbar");
 }
 #back-button[disabled="true"] {
@@ -45,21 +57,22 @@
   -moz-appearance: none;
   border: none;
 }
 
 #placesMenu > menu {
   padding-inline-start: 4px;
   -moz-binding: url("chrome://browser/skin/places/organizer.xml#toolbarbutton-dropdown");
   -moz-appearance: toolbarbutton;
-  color: -moz-DialogText;
 }
 
-#placesMenu > menu:hover:not(:active):not([open="true"]) {
-  color: -moz-buttonhovertext;
+#placesMenu > menu:active,
+#placesMenu > menu:hover,
+#placesMenu > menu[open] {
+  color: ButtonText;
 }
 
 #placesMenu > menu > .menubar-right {
   -moz-appearance: toolbarbutton-dropdown;
   width: 12px;
   height: 12px;
 }