mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Revert "For mozcentral use Firefox color theme instead of system theme." since -moz-toolbar-prefers-color-scheme was removed
Reverts mozilla/pdf.js#13314, see https://groups.google.com/g/firefox-dev/c/vajhbYKDpPM Given that `-moz-toolbar-prefers-color-scheme` was removed in https://bugzilla.mozilla.org/show_bug.cgi?id=1736038, unless we fix this before the next PDF.js update in mozilla-central we'll thus break dark mode in the Firefox built-in PDF Viewer.
This commit is contained in:
parent
52fce0d17b
commit
aae8a21286
2 changed files with 8 additions and 16 deletions
6
external/builder/builder.js
vendored
6
external/builder/builder.js
vendored
|
@ -270,12 +270,6 @@ function preprocessCSS(mode, source, destination) {
|
|||
content = expandImports(content, source);
|
||||
if (mode === "mozcentral") {
|
||||
content = removePrefixed(content, hasPrefixedMozcentral);
|
||||
// In the mozcentral version the color theme should be based on the Firefox
|
||||
// theme instead of the system theme.
|
||||
content = content.replace(
|
||||
"prefers-color-scheme",
|
||||
"-moz-toolbar-prefers-color-scheme"
|
||||
);
|
||||
}
|
||||
fs.writeFileSync(destination, content);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue