mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	feat(server): define code note theme option
This commit is contained in:
		| @@ -23,6 +23,7 @@ const ALLOWED_OPTIONS = new Set<OptionNames>([ | |||||||
|     "theme", |     "theme", | ||||||
|     "codeBlockTheme", |     "codeBlockTheme", | ||||||
|     "codeBlockWordWrap", |     "codeBlockWordWrap", | ||||||
|  |     "codeNoteTheme", | ||||||
|     "syncServerHost", |     "syncServerHost", | ||||||
|     "syncServerTimeout", |     "syncServerTimeout", | ||||||
|     "syncProxy", |     "syncProxy", | ||||||
|   | |||||||
| @@ -137,6 +137,18 @@ const defaultOptions: DefaultOption[] = [ | |||||||
|  |  | ||||||
|     // Appearance |     // Appearance | ||||||
|     { name: "splitEditorOrientation", value: "horizontal", isSynced: true }, |     { name: "splitEditorOrientation", value: "horizontal", isSynced: true }, | ||||||
|  |     { | ||||||
|  |         name: "codeNoteTheme", | ||||||
|  |         value: (optionsMap) => { | ||||||
|  |             switch (optionsMap.theme) { | ||||||
|  |                 case "light": | ||||||
|  |                 case "dark": | ||||||
|  |                 default: | ||||||
|  |                     return "default:abyss"; | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         isSynced: false | ||||||
|  |     }, | ||||||
|  |  | ||||||
|     // Internationalization |     // Internationalization | ||||||
|     { name: "locale", value: "en", isSynced: true }, |     { name: "locale", value: "en", isSynced: true }, | ||||||
|   | |||||||
| @@ -91,6 +91,7 @@ export interface OptionDefinitions extends KeyboardShortcutsOptions<KeyboardActi | |||||||
|  |  | ||||||
|     // Appearance |     // Appearance | ||||||
|     splitEditorOrientation: "horziontal" | "vertical"; |     splitEditorOrientation: "horziontal" | "vertical"; | ||||||
|  |     codeNoteTheme: string; | ||||||
|  |  | ||||||
|     initialized: boolean; |     initialized: boolean; | ||||||
|     isPasswordSet: boolean; |     isPasswordSet: boolean; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user