From 708c16176b9a8353a7460dd313a0cc441f679c21 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 30 Mar 2023 23:47:22 +0200 Subject: [PATCH] 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! --- src/components/VencordSettings/VencordTab.tsx | 2 +- src/patcher.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/VencordSettings/VencordTab.tsx b/src/components/VencordSettings/VencordTab.tsx index 5ac120d..120f4c5 100644 --- a/src/components/VencordSettings/VencordTab.tsx +++ b/src/components/VencordSettings/VencordTab.tsx @@ -72,7 +72,7 @@ function VencordSettings() { title: "Use Windows' native title bar instead of Discord's custom one", note: "Requires a full restart" }), - !IS_WEB && { + !IS_WEB && false /* This causes electron to freeze / white screen for some people */ && { key: "transparent", title: "Enable window transparency", note: "Requires a full restart" diff --git a/src/patcher.ts b/src/patcher.ts index 9752a04..ba906d5 100644 --- a/src/patcher.ts +++ b/src/patcher.ts @@ -83,10 +83,12 @@ if (!process.argv.includes("--vanilla")) { delete options.frame; } + /* This causes electron to freeze / white screen for some people if (settings.transparent) { options.transparent = true; options.backgroundColor = "#00000000"; } + */ process.env.DISCORD_PRELOAD = original;