mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
For mozcentral use Firefox color theme instead of system theme.
See: https://bugzilla.mozilla.org/show_bug.cgi?id=1701691
This commit is contained in:
parent
d10da907da
commit
2c713f9cb5
2 changed files with 16 additions and 7 deletions
6
external/builder/builder.js
vendored
6
external/builder/builder.js
vendored
|
@ -269,6 +269,12 @@ 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