From 607f9535289150b857be5b795177e79dc0475354 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Sun, 19 Nov 2023 09:28:35 +0900 Subject: [PATCH] Fix: Rounding - Compatibility for menu bar menu #814 --- css/leptonChrome.css | 10 ++++++++++ css/leptonChromeESR.css | 4 ++++ src/compatibility/_theme.scss | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index e01e8c2f..14b3ccba 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -157,6 +157,10 @@ margin-inline-start: 0 !important; } } + /*= Menubar rounding #814 ====================================================*/ + #main-menubar { + --panel-border-radius: var(--arrowpanel-border-radius); + } } /*= OS - Compatibility =======================================================*/ @supports -moz-bool-pref("userChrome.compatibility.os") { @@ -13288,6 +13292,7 @@ /*= Findbar Border Color =====================================================*/ /*= Drop Indicator Color #473 ================================================*/ /*= Firefox View Border #498 =================================================*/ + /*= Menubar rounding #814 ====================================================*/ } @media (-moz-bool-pref: "userChrome.compatibility.theme") and (-moz-bool-pref: "userChrome.tab.connect_to_window") { /* TARGET: original, photon */ @@ -13387,6 +13392,11 @@ margin-inline-start: 0 !important; } } +@media (-moz-bool-pref: "userChrome.compatibility.theme") { + #main-menubar { + --panel-border-radius: var(--arrowpanel-border-radius); + } +} /*= OS - Compatibility =======================================================*/ @media (-moz-bool-pref: "userChrome.compatibility.os") { /*= Windows 10 - Top border of accent color at ESR #358 ======================*/ diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index 6874cd6b..07fe5ce3 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -157,6 +157,10 @@ margin-inline-start: 0 !important; } } + /*= Menubar rounding #814 ====================================================*/ + #main-menubar { + --panel-border-radius: var(--arrowpanel-border-radius); + } } /*= OS - Compatibility =======================================================*/ @supports -moz-bool-pref("userChrome.compatibility.os") { diff --git a/src/compatibility/_theme.scss b/src/compatibility/_theme.scss index cb377ff4..041ac7ed 100644 --- a/src/compatibility/_theme.scss +++ b/src/compatibility/_theme.scss @@ -155,3 +155,8 @@ vbox[part="drop-indicator-bar"] > image[part="drop-indicator"] { // #531 @include _firefox_view_border_remove; } + +/*= Menubar rounding #814 ====================================================*/ +#main-menubar { + --panel-border-radius: var(--arrowpanel-border-radius); +}