# HG changeset patch
# User Matt A. Tobin <email@mattatobin.com>
#      Sat Aug 17 13:35:55 2024 -0500
# Node ID cd1042d0923f9bb99c3d213f137c69dd1e7f6bfa
# Parent  bf54acd1ea90814f9eabddb7f354ece2f06e53b2
[BINOC] Use a white menu bar to better match Windows 10's occasional native style

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
@@ -21,16 +21,21 @@ toolbox {
        color which by default should be a non-blinding rgb(240, 240, 240) */
     -moz-appearance: none;
 
     /* Since we are overriding the style we want to provide the bottom border
        that is normally drawn by look&feel.
        However, local application styling may also provide it on adjacent
        widgets as a border-top. Those will need to omit it on Windows 10. */
     border-bottom: 1px solid ThreeDShadow;
+
+
+
+    /* Make the toolbox border more reasonable */
+    border-top: none;
   }
 }
 
 /* ::::: toolbar & menubar ::::: */
 
 toolbar, menubar {
   -moz-appearance: toolbar;
 }
@@ -39,16 +44,42 @@ toolbar {
   min-width: 1px;
   min-height: 19px;
 }
 
 toolbar:first-child, menubar {
   min-width: 1px;
 }
 
+toolbar:first-child, menubar {
+  min-width: 1px;
+  border-bottom: 1px solid ThreeDShadow;
+  border-top: 0px !important;
+}
+
+@media (-moz-os-version: windows-win10) and (-moz-windows-theme: aero) {
+  toolbox > toolbar[type="menubar"], menubar {
+    -moz-appearance: none;
+    background-color: #fff;
+  }
+
+  toolbox > toolbar[type="menubar"],
+  toolbox > menubar,
+  toolbar > menubar,
+  toolbaritem > menubar {
+    border-bottom: none !important;
+  }
+
+  toolbar > menubar,
+  toolbaritem > menubar {
+    -moz-appearance: toolbar !important;
+    background-color: transparent !important;
+  }
+}
+
 /* ::::: lightweight theme ::::: */
  
 menubar:-moz-lwtheme,
 toolbox:-moz-lwtheme,
 toolbar:-moz-lwtheme {
   -moz-appearance: none;
 }
 
