mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Re-order the names of the new pageColors
options/preferences (PR 14874 follow-up)
Given that the new API-option is an Object named `pageColors`, with `background`/`foreground` keys, it occurred to me that it'd be slightly more consistent if the options/preferences names fully reflected that.
This commit is contained in:
parent
f8838eb794
commit
39251c5789
3 changed files with 6 additions and 6 deletions
|
@ -209,12 +209,12 @@
|
||||||
],
|
],
|
||||||
"default": -1
|
"default": -1
|
||||||
},
|
},
|
||||||
"pageBackgroundColor": {
|
"pageColorsBackground": {
|
||||||
"description": "The color is a string as defined in CSS. Its goal is to help improve readability in high contrast mode",
|
"description": "The color is a string as defined in CSS. Its goal is to help improve readability in high contrast mode",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "Canvas"
|
"default": "Canvas"
|
||||||
},
|
},
|
||||||
"pageForegroundColor": {
|
"pageColorsForeground": {
|
||||||
"description": "The color is a string as defined in CSS. Its goal is to help improve readability in high contrast mode",
|
"description": "The color is a string as defined in CSS. Its goal is to help improve readability in high contrast mode",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "CanvasText"
|
"default": "CanvasText"
|
||||||
|
|
|
@ -526,8 +526,8 @@ const PDFViewerApplication = {
|
||||||
maxCanvasPixels: AppOptions.get("maxCanvasPixels"),
|
maxCanvasPixels: AppOptions.get("maxCanvasPixels"),
|
||||||
enablePermissions: AppOptions.get("enablePermissions"),
|
enablePermissions: AppOptions.get("enablePermissions"),
|
||||||
pageColors: {
|
pageColors: {
|
||||||
background: AppOptions.get("pageBackgroundColor"),
|
background: AppOptions.get("pageColorsBackground"),
|
||||||
foreground: AppOptions.get("pageForegroundColor"),
|
foreground: AppOptions.get("pageColorsForeground"),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
pdfRenderingQueue.setViewer(this.pdfViewer);
|
pdfRenderingQueue.setViewer(this.pdfViewer);
|
||||||
|
|
|
@ -129,12 +129,12 @@ const defaultOptions = {
|
||||||
compatibility: compatibilityParams.maxCanvasPixels,
|
compatibility: compatibilityParams.maxCanvasPixels,
|
||||||
kind: OptionKind.VIEWER,
|
kind: OptionKind.VIEWER,
|
||||||
},
|
},
|
||||||
pageBackgroundColor: {
|
pageColorsBackground: {
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
value: "Canvas",
|
value: "Canvas",
|
||||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||||
},
|
},
|
||||||
pageForegroundColor: {
|
pageColorsForeground: {
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
value: "CanvasText",
|
value: "CanvasText",
|
||||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue