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() {
 | 
			
		||||
    const extraOpts: Partial<BrowserWindowConstructorOptions> = {};
 | 
			
		||||
    if (!optionService.getOptionBool('nativeTitleBarVisible')) {
 | 
			
		||||
        if (process.platform !== "darwin") {
 | 
			
		||||
            // Windows, Linux
 | 
			
		||||
            extraOpts.titleBarStyle = "hidden";
 | 
			
		||||
        extraOpts.titleBarOverlay = (process.platform !== "darwin");
 | 
			
		||||
            extraOpts.titleBarOverlay = true;
 | 
			
		||||
        } else {
 | 
			
		||||
            // macOS
 | 
			
		||||
            extraOpts.titleBarStyle = "hiddenInset";
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return extraOpts;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user