aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorRyan Cao <70191398+ryanccn@users.noreply.github.com>2023-04-09 10:06:09 +0800
committerGitHub <noreply@github.com>2023-04-09 02:06:09 +0000
commit613fa9a57b1fe7985e526a9c7281b9188f535463 (patch)
tree6bf90c102dfff5a064985fa564b29f9d048babd1 /src/main
parent08822dd19064ea5b707117c5ed51f62dd0a8e316 (diff)
downloadVencord-613fa9a57b1fe7985e526a9c7281b9188f535463.tar.gz
Vencord-613fa9a57b1fe7985e526a9c7281b9188f535463.tar.bz2
Vencord-613fa9a57b1fe7985e526a9c7281b9188f535463.zip
feat: add translucency option for macOS (#849)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/patcher.ts5
1 files changed, 5 insertions, 0 deletions
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);