mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	feat(server): set up option to toggle background effects
This commit is contained in:
		| @@ -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', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user