mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	allow user to choose theme during initial setup
This commit is contained in:
		| @@ -28,7 +28,7 @@ async function initSyncedOptions(username, password) { | ||||
|     await passwordEncryptionService.setDataKey(password, utils.randomSecureToken(16), true); | ||||
| } | ||||
|  | ||||
| async function initNotSyncedOptions(initialized, startNotePath = 'root', syncServerHost = '', syncProxy = '') { | ||||
| async function initNotSyncedOptions(initialized, startNotePath = 'root', opts = {}) { | ||||
|     await optionService.createOption('openTabs', JSON.stringify([ | ||||
|         { | ||||
|             notePath: startNotePath, | ||||
| @@ -45,14 +45,14 @@ async function initNotSyncedOptions(initialized, startNotePath = 'root', syncSer | ||||
|     await optionService.createOption('lastSyncedPush', 0, false); | ||||
|  | ||||
|     await optionService.createOption('zoomFactor', 1.0, false); | ||||
|     await optionService.createOption('theme', 'white', false); | ||||
|     await optionService.createOption('theme', opts.theme || 'white', false); | ||||
|  | ||||
|     await optionService.createOption('leftPaneMinWidth', '350', false); | ||||
|     await optionService.createOption('leftPaneWidthPercent', '20', false); | ||||
|  | ||||
|     await optionService.createOption('syncServerHost', syncServerHost, false); | ||||
|     await optionService.createOption('syncServerHost', opts.syncServerHost || '', false); | ||||
|     await optionService.createOption('syncServerTimeout', 5000, false); | ||||
|     await optionService.createOption('syncProxy', syncProxy, false); | ||||
|     await optionService.createOption('syncProxy', opts.syncProxy || '', false); | ||||
|  | ||||
|     await optionService.createOption('mainFontSize', '100', false); | ||||
|     await optionService.createOption('treeFontSize', '100', false); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user