# HG changeset patch
# User "Matt A. Tobin" <email@mattatobin.com>
# Date 1623517988 14400
# Node ID fb944c2111fe097ba41e939cd53906d591335f42
# Parent  af9f41e3c943a05d646535317c50d1a11feed177
[PATCH] [Toolkit] Don't use the "aero" msstyle provided toolbox
From df1bfef2a301ebbc9bd8bdcdc571679ceae7e4e1 Mon Sep 17 00:00:00 2001
 background on Windows 10
---
 toolkit/themes/windows/global/toolbar.css | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/toolkit/themes/windows/global/toolbar.css b/toolkit/themes/windows/global/toolbar.css
--- a/toolkit/themes/windows/global/toolbar.css
+++ b/toolkit/themes/windows/global/toolbar.css
@@ -9,16 +9,25 @@
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
 /* ::::: toolbox ::::: */
 
 toolbox {
   -moz-appearance: toolbox;
 }
 
+@media (-moz-os-version: windows-win10) and (-moz-windows-theme: aero) {
+  toolbox {
+    /* Windows 10's "aero" msstyle sourced toolbox background is pure white
+       so don't use the widget toolbox styling and fallback to -moz-Dialog's
+       color which by default should be a non-blinding rgb(240, 240, 240) */
+    -moz-appearance: none;
+  }
+}
+
 /* ::::: toolbar & menubar ::::: */
 
 toolbar, menubar {
   -moz-appearance: toolbar;
 }
 
 toolbar {
   min-width: 1px;
