gh-9600: Fixed text being unreadable with some themes (gh-12998)

This commit is contained in:
mr. m
2026-03-30 14:14:23 +02:00
committed by GitHub
parent 2d6f2cbbde
commit a2796d7af0
3 changed files with 4 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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) {