feat: add translucency option for macOS (#849)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Ryan Cao 2023-04-09 10:06:09 +08:00 committed by GitHub
parent 08822dd190
commit 613fa9a57b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View file

@ -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);