mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
feat(server): set up option to toggle background effects
This commit is contained in:
parent
f4efefe480
commit
c39e8be29a
@ -68,6 +68,7 @@ const ALLOWED_OPTIONS = new Set([
|
||||
'firstDayOfWeek',
|
||||
'textNoteEditorType',
|
||||
'layoutOrientation',
|
||||
'backgroundEffects',
|
||||
'allowedHtmlTags' // Allow configuring HTML import tags
|
||||
]);
|
||||
|
||||
|
@ -37,7 +37,7 @@ function index(req: Request, res: Response) {
|
||||
platform: process.platform,
|
||||
isElectron,
|
||||
hasNativeTitleBar: (isElectron && options.nativeTitleBarVisible === "true"),
|
||||
hasBackgroundEffects: (isElectron && true),
|
||||
hasBackgroundEffects: (isElectron && options.backgroundEffects === "true"),
|
||||
mainFontSize: parseInt(options.mainFontSize),
|
||||
treeFontSize: parseInt(options.treeFontSize),
|
||||
detailFontSize: parseInt(options.detailFontSize),
|
||||
|
@ -137,6 +137,7 @@ const defaultOptions: DefaultOption[] = [
|
||||
|
||||
// HTML import configuration
|
||||
{ name: "layoutOrientation", value: "vertical", isSynced: false },
|
||||
{ name: "backgroundEffects", value: "false", isSynced: false },
|
||||
{ name: "allowedHtmlTags", value: JSON.stringify([
|
||||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
|
||||
'li', 'b', 'i', 'strong', 'em', 'strike', 's', 'del', 'abbr', 'code', 'hr', 'br', 'div',
|
||||
|
Loading…
x
Reference in New Issue
Block a user