From b6021cf5be31c53aa139e3d1bfe830234cd23272 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Mon, 30 Mar 2026 13:37:15 +0200 Subject: [PATCH] closes #9600: Fixed text being unreadable with some themes --- src/zen/common/styles/schemes/dark.inc.css | 1 - src/zen/common/styles/schemes/light.inc.css | 1 - src/zen/spaces/ZenGradientGenerator.mjs | 4 ++++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/zen/common/styles/schemes/dark.inc.css b/src/zen/common/styles/schemes/dark.inc.css index 032dd757d9..9b20f1a6a0 100644 --- a/src/zen/common/styles/schemes/dark.inc.css +++ b/src/zen/common/styles/schemes/dark.inc.css @@ -3,5 +3,4 @@ % file, You can obtain one at http://mozilla.org/MPL/2.0/. color-scheme: dark; ---toolbar-color-scheme: dark; --zen-urlbar-outline-offset: -2px; diff --git a/src/zen/common/styles/schemes/light.inc.css b/src/zen/common/styles/schemes/light.inc.css index a3c18d0fd1..d010f2f193 100644 --- a/src/zen/common/styles/schemes/light.inc.css +++ b/src/zen/common/styles/schemes/light.inc.css @@ -3,5 +3,4 @@ % file, You can obtain one at http://mozilla.org/MPL/2.0/. color-scheme: light; ---toolbar-color-scheme: light; --zen-urlbar-outline-offset: 0px; diff --git a/src/zen/spaces/ZenGradientGenerator.mjs b/src/zen/spaces/ZenGradientGenerator.mjs index e6d926bc7e..c4ebebf78c 100644 --- a/src/zen/spaces/ZenGradientGenerator.mjs +++ b/src/zen/spaces/ZenGradientGenerator.mjs @@ -1753,6 +1753,10 @@ export class nsZenThemePicker extends nsZenMultiWindowFeature { "--toolbox-textcolor", `rgba(${textColor[0]}, ${textColor[1]}, ${textColor[2]}, ${textColor[3]})` ); + docElement.style.setProperty( + "--toolbar-color-scheme", + isDarkMode ? "dark" : "light" + ); } if (!skipUpdate) {