Remove transparency feature

This not only causes incredibly confusion among users because they
expect it to work without themes, it also causes freezes/whitescreens
for some users. Thus, this feature is disabled for now until someone
contributes a fix!
This commit is contained in:
Vendicated 2023-03-30 23:47:22 +02:00
parent 035d1e24b2
commit 708c16176b
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
2 changed files with 3 additions and 1 deletions

View file

@ -72,7 +72,7 @@ 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 && { !IS_WEB && false /* This causes electron to freeze / white screen for some people */ && {
key: "transparent", key: "transparent",
title: "Enable window transparency", title: "Enable window transparency",
note: "Requires a full restart" note: "Requires a full restart"

View file

@ -83,10 +83,12 @@ if (!process.argv.includes("--vanilla")) {
delete options.frame; delete options.frame;
} }
/* This causes electron to freeze / white screen for some people
if (settings.transparent) { if (settings.transparent) {
options.transparent = true; options.transparent = true;
options.backgroundColor = "#00000000"; options.backgroundColor = "#00000000";
} }
*/
process.env.DISCORD_PRELOAD = original; process.env.DISCORD_PRELOAD = original;