From b636b65e55235fde9092843a7d3f8dae02d9d720 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 19 Jan 2024 01:05:45 +0100 Subject: [PATCH] implement vencord 'transparency' option --- src/main/mainWindow.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index db44566..62a2559 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -367,7 +367,7 @@ function createMainWindow() { const { staticTitle, transparencyOption, enableMenu, customTitleBar } = Settings.store; - const { frameless } = VencordSettings.store; + const { frameless, transparent } = VencordSettings.store; const noFrame = frameless === true || customTitleBar === true; @@ -383,6 +383,10 @@ function createMainWindow() { }, icon: ICON_PATH, frame: !noFrame, + ...(transparent && { + transparent: true, + backgroundColor: "#00000000" + }), ...(transparencyOption && transparencyOption !== "none" && { backgroundColor: "#00000000",