mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-02 21:59:18 +00:00
gh-9600: Fixed text being unreadable with some themes (gh-12998)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user