mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	feat(native-buttons): apply inset style for macOS
This commit is contained in:
		
							parent
							
								
									d472a00532
								
							
						
					
					
						commit
						07beeda79c
					
				@ -115,8 +115,14 @@ async function createMainWindow(app: App) {
 | 
				
			|||||||
function getWindowExtraOpts() {
 | 
					function getWindowExtraOpts() {
 | 
				
			||||||
    const extraOpts: Partial<BrowserWindowConstructorOptions> = {};
 | 
					    const extraOpts: Partial<BrowserWindowConstructorOptions> = {};
 | 
				
			||||||
    if (!optionService.getOptionBool('nativeTitleBarVisible')) {
 | 
					    if (!optionService.getOptionBool('nativeTitleBarVisible')) {
 | 
				
			||||||
        extraOpts.titleBarStyle = "hidden";
 | 
					        if (process.platform !== "darwin") {
 | 
				
			||||||
        extraOpts.titleBarOverlay = (process.platform !== "darwin");
 | 
					            // Windows, Linux
 | 
				
			||||||
 | 
					            extraOpts.titleBarStyle = "hidden";
 | 
				
			||||||
 | 
					            extraOpts.titleBarOverlay = true;
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					            // macOS
 | 
				
			||||||
 | 
					            extraOpts.titleBarStyle = "hiddenInset";
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return extraOpts;
 | 
					    return extraOpts;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user