From 613fa9a57b1fe7985e526a9c7281b9188f535463 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Sun, 9 Apr 2023 10:06:09 +0800 Subject: feat: add translucency option for macOS (#849) Co-authored-by: V --- src/main/patcher.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main') diff --git a/src/main/patcher.ts b/src/main/patcher.ts index f92a64d..066cb3d 100644 --- a/src/main/patcher.ts +++ b/src/main/patcher.ts @@ -85,6 +85,11 @@ if (!IS_VANILLA) { options.backgroundColor = "#00000000"; } + if (settings.macosTranslucency && process.platform === "darwin") { + options.backgroundColor = "#00000000"; + options.vibrancy = "sidebar"; + } + process.env.DISCORD_PRELOAD = original; super(options); -- cgit