Bug 1318903 - use !important to force vista/7 controls in fullscreen even on dark themes, r=dao
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 21 Nov 2016 16:41:23 +0000
changeset 324079 7f9e1e63b71081efcb4070bc5231cd130dca145a
parent 324078 7477d9a20031ca7147f9251977a618c5ee728672
child 324080 e793767cb441db6307235e81575c04bf60e1139d
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersdao
bugs1318903
milestone53.0a1
Bug 1318903 - use !important to force vista/7 controls in fullscreen even on dark themes, r=dao MozReview-Commit-ID: eIleloCNMZ
browser/themes/windows/browser.css
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -1101,17 +1101,21 @@ toolbar[brighttext] #close-button {
        (-moz-os-version: windows-win7) {
   #window-controls {
     margin-inline-start: 4px;
   }
 
   #minimize-button,
   #restore-button,
   #close-button {
-    list-style-image: url("chrome://global/skin/icons/windowControls.png");
+    /* Important to ensure this applies even on toolbar[brighttext] */
+    list-style-image: url("chrome://global/skin/icons/windowControls.png") !important;
+    /* Also override background color to a avoid hover background styling
+     * leaking through around the image. */
+    background-color: transparent !important;
     padding: 0;
   }
 
   #minimize-button {
     -moz-image-region: rect(0, 16px, 16px, 0);
   }
 
   #minimize-button:hover {