From e10a16bc0d9282c127b100ed4f75ede65ace461a Mon Sep 17 00:00:00 2001 From: tiimo <65387160+timothebot@users.noreply.github.com> Date: Thu, 22 May 2025 12:31:23 +0200 Subject: [PATCH 1/4] fix: Faulty HTML comment hiding whole README Signed-off-by: tiimo <65387160+timothebot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 31b1a7b5b..db459c12c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - ### `Zen Browser` From 40d38b3961d4cbb62cee9eaf2f342bc4263d1b44 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Thu, 22 May 2025 19:17:10 +0200 Subject: [PATCH 2/4] feat: Added new private window looks, b=(no-bug), c=common, tabs, workspaces --- src/zen/common/styles/zen-theme.css | 10 +++ src/zen/tabs/ZenPinnedTabManager.mjs | 12 +++- src/zen/tabs/zen-tabs/vertical-tabs.css | 9 --- src/zen/workspaces/ZenGradientGenerator.mjs | 8 ++- src/zen/workspaces/ZenWorkspaces.mjs | 77 ++++++++++++++++----- src/zen/workspaces/zen-workspaces.css | 10 +-- 6 files changed, 93 insertions(+), 33 deletions(-) diff --git a/src/zen/common/styles/zen-theme.css b/src/zen/common/styles/zen-theme.css index fe1ea611c..cb641d7b3 100644 --- a/src/zen/common/styles/zen-theme.css +++ b/src/zen/common/styles/zen-theme.css @@ -199,6 +199,16 @@ --zen-themed-toolbar-bg-transparent: transparent; } + &[zen-private-window='true'] { + --zen-main-browser-background: linear-gradient( + 130deg, + light-dark(rgb(247, 217, 255), rgb(10, 6, 11)) 0%, + light-dark(rgb(242, 198, 255), rgb(19, 7, 22)) 100% + ); + --zen-main-browser-background-toolbar: var(--zen-main-browser-background); + --zen-primary-color: light-dark(rgb(93, 42, 107), rgb(110, 48, 125)) !important; + } + --toolbar-field-background-color: var(--zen-colors-input-bg) !important; --arrowpanel-background: var(--zen-dialog-background) !important; diff --git a/src/zen/tabs/ZenPinnedTabManager.mjs b/src/zen/tabs/ZenPinnedTabManager.mjs index 96cd96627..9eefbdc86 100644 --- a/src/zen/tabs/ZenPinnedTabManager.mjs +++ b/src/zen/tabs/ZenPinnedTabManager.mjs @@ -151,7 +151,7 @@ document.documentElement.getAttribute('chromehidden')?.includes('menubar') ); } - return this._enabled; + return this._enabled && !gZenWorkspaces.privateWindowOrDisabled; } async _refreshPinnedTabs({ init = false } = {}) { @@ -752,6 +752,9 @@ } _insertItemsIntoTabContextMenu() { + if (!this.enabled) { + return; + } const elements = window.MozXULElement.parseXULToFragment(`