Fix transparencyOption for custom discord titlebar

This commit is contained in:
Marocco2 2024-01-04 14:13:13 +01:00
parent f048047ebc
commit 7fcff8ccb4
No known key found for this signature in database
GPG key ID: 93F3DB66B15AED57

View file

@ -398,6 +398,11 @@ function createMainWindow() {
backgroundColor: "#00000000",
backgroundMaterial: transparencyOption
}),
// Fix transparencyOption for custom discord titlebar
...(discordWindowsTitleBar && transparencyOption &&
transparencyOption !== "none" && {
transparent: true
}),
...(staticTitle && { title: "Vesktop" }),
...(process.platform === "darwin" && getDarwinOptions()),
...getWindowBoundsOptions(),