Add back transparency option
This commit is contained in:
		
							parent
							
								
									74300e0a69
								
							
						
					
					
						commit
						988435714e
					
				
					 2 changed files with 4 additions and 5 deletions
				
			
		| 
						 | 
					@ -83,10 +83,10 @@ function VencordSettings() {
 | 
				
			||||||
                title: "Use Windows' native title bar instead of Discord's custom one",
 | 
					                title: "Use Windows' native title bar instead of Discord's custom one",
 | 
				
			||||||
                note: "Requires a full restart"
 | 
					                note: "Requires a full restart"
 | 
				
			||||||
            }),
 | 
					            }),
 | 
				
			||||||
            !IS_WEB && false /* This causes electron to freeze / white screen for some people */ && {
 | 
					            !IS_WEB && {
 | 
				
			||||||
                key: "transparent",
 | 
					                key: "transparent",
 | 
				
			||||||
                title: "Enable window transparency",
 | 
					                title: "Enable window transparency.",
 | 
				
			||||||
                note: "Requires a full restart"
 | 
					                note: "You need a theme that supports transparency or this will do nothing. Will stop the window from being resizable. Requires a full restart"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            !IS_WEB && isWindows && {
 | 
					            !IS_WEB && isWindows && {
 | 
				
			||||||
                key: "winCtrlQ",
 | 
					                key: "winCtrlQ",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -79,8 +79,7 @@ if (!IS_VANILLA) {
 | 
				
			||||||
                    delete options.frame;
 | 
					                    delete options.frame;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                // This causes electron to freeze / white screen for some people
 | 
					                if (settings.transparent) {
 | 
				
			||||||
                if ((settings as any).transparentUNSAFE_USE_AT_OWN_RISK) {
 | 
					 | 
				
			||||||
                    options.transparent = true;
 | 
					                    options.transparent = true;
 | 
				
			||||||
                    options.backgroundColor = "#00000000";
 | 
					                    options.backgroundColor = "#00000000";
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue