From a2796d7af002ce8a398b0845fa1e9145b20add87 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Mon, 30 Mar 2026 14:14:23 +0200 Subject: [PATCH] gh-9600: Fixed text being unreadable with some themes (gh-12998) --- 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 032dd757d..9b20f1a6a 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 a3c18d0fd..d010f2f19 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 e6d926bc7..c4ebebf78 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) {