implement vencord 'transparency' option

This commit is contained in:
Vendicated 2024-01-19 01:05:45 +01:00
parent 7d30dcdb47
commit b636b65e55
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -367,7 +367,7 @@ function createMainWindow() {
const { staticTitle, transparencyOption, enableMenu, customTitleBar } = Settings.store; const { staticTitle, transparencyOption, enableMenu, customTitleBar } = Settings.store;
const { frameless } = VencordSettings.store; const { frameless, transparent } = VencordSettings.store;
const noFrame = frameless === true || customTitleBar === true; const noFrame = frameless === true || customTitleBar === true;
@ -383,6 +383,10 @@ function createMainWindow() {
}, },
icon: ICON_PATH, icon: ICON_PATH,
frame: !noFrame, frame: !noFrame,
...(transparent && {
transparent: true,
backgroundColor: "#00000000"
}),
...(transparencyOption && ...(transparencyOption &&
transparencyOption !== "none" && { transparencyOption !== "none" && {
backgroundColor: "#00000000", backgroundColor: "#00000000",