From 69a0ddd03c1710079b53d2f0a6828d1d70ec0a57 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Wed, 1 Oct 2025 22:17:42 +0200 Subject: [PATCH] fix: Fix compact mode native radius and separtion for windows, b=no-bug, c=compact-mode --- src/browser/themes/windows/browser-css.patch | 5 +++-- src/zen/compact-mode/zen-compact-mode.css | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/browser/themes/windows/browser-css.patch b/src/browser/themes/windows/browser-css.patch index 098bd9c63..5b064a7bb 100644 --- a/src/browser/themes/windows/browser-css.patch +++ b/src/browser/themes/windows/browser-css.patch @@ -1,5 +1,5 @@ diff --git a/browser/themes/windows/browser.css b/browser/themes/windows/browser.css -index 4485369284ee762bc8b35afb84fec0874a831fff..7096e2e5d50cda99b62a2aa7118fea6371e76b85 100644 +index 4485369284ee762bc8b35afb84fec0874a831fff..6a1ad15f657437aa4ef98fda63ae921a378f7310 100644 --- a/browser/themes/windows/browser.css +++ b/browser/themes/windows/browser.css @@ -31,7 +31,6 @@ @@ -10,13 +10,14 @@ index 4485369284ee762bc8b35afb84fec0874a831fff..7096e2e5d50cda99b62a2aa7118fea63 } /* Using a semitransparent background preserves the tinting from the backdrop. -@@ -60,14 +59,12 @@ +@@ -60,14 +59,13 @@ } /* This is needed for Windows 10, see bug 1961257 */ -@media (-moz-windows-accent-color-in-titlebar) { - :root[customtitlebar][sizemode="normal"] #navigator-toolbox { + :root[customtitlebar][sizemode="normal"] #browser { ++ --zen-sidebar-compact-top-offset: 1px; border-top: 0.5px solid ActiveBorder; &:-moz-window-inactive { border-top-color: InactiveBorder; diff --git a/src/zen/compact-mode/zen-compact-mode.css b/src/zen/compact-mode/zen-compact-mode.css index 38741c81a..af798fa33 100644 --- a/src/zen/compact-mode/zen-compact-mode.css +++ b/src/zen/compact-mode/zen-compact-mode.css @@ -29,7 +29,7 @@ &, &::before, &::after { - border-radius: calc(var(--zen-native-inner-radius) + var(--zen-element-separation) / 4 - var(--zen-compact-mode-no-padding-radius-fix, 0px)); + border-radius: calc(var(--zen-native-inner-radius) - var(--zen-compact-mode-no-padding-radius-fix, 0px)); } } @@ -97,7 +97,10 @@ bottom: var(--zen-compact-float); padding: 0 var(--zen-compact-float) !important; :root[zen-single-toolbar='true'] & { - top: calc(var(--zen-compact-float) / 2); + /* We add an extra offset since windows users have a border top + * in the window in order to compensate how windows renders the + * titlebar */ + top: calc(var(--zen-compact-float) / 2 + var(--zen-sidebar-compact-top-offset, 0px)); height: calc(100% - var(--zen-compact-float)); } :root:not([zen-single-toolbar='true']) & {