From c8c08b1f5f704d4184cc4beef8fe97b0854f18c5 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Thu, 15 Sep 2022 00:41:57 -0500 Subject: [NULL] Make menubars on Windows 10 better match while toolbox backgrounds remain -moz-Dialog --- .../bookmarks/content/bookmarksManager.xul | 3 ++- system/themes/windows/global/toolbar.css | 24 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/apps/navigator/components/bookmarks/content/bookmarksManager.xul b/apps/navigator/components/bookmarks/content/bookmarksManager.xul index 8ea5cb0f2..260a2bf46 100644 --- a/apps/navigator/components/bookmarks/content/bookmarksManager.xul +++ b/apps/navigator/components/bookmarks/content/bookmarksManager.xul @@ -124,7 +124,8 @@ + align="center" + type="menubar"> #ifdef MOZ_WIDGET_GTK diff --git a/system/themes/windows/global/toolbar.css b/system/themes/windows/global/toolbar.css index 70459701f..58e9f6d72 100644 --- a/system/themes/windows/global/toolbar.css +++ b/system/themes/windows/global/toolbar.css @@ -29,6 +29,10 @@ toolbox { 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; } } @@ -51,6 +55,26 @@ toolbar:first-child, menubar { 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, -- cgit v1.2.3