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/components/VencordSettings/VencordTab.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/components') diff --git a/src/components/VencordSettings/VencordTab.tsx b/src/components/VencordSettings/VencordTab.tsx index d5ffa91..7bb5353 100644 --- a/src/components/VencordSettings/VencordTab.tsx +++ b/src/components/VencordSettings/VencordTab.tsx @@ -48,6 +48,7 @@ function VencordSettings() { const donateImage = React.useMemo(() => Math.random() > 0.5 ? DEFAULT_DONATE_IMAGE : SHIGGY_DONATE_IMAGE, []); const isWindows = navigator.platform.toLowerCase().startsWith("win"); + const isMac = navigator.platform.toLowerCase().startsWith("mac"); const Switches: Array; @@ -88,6 +89,11 @@ function VencordSettings() { key: "disableMinSize", title: "Disable minimum window size", note: "Requires a full restart" + }, + IS_DISCORD_DESKTOP && isMac && { + key: "macosTranslucency", + title: "Enable translucent window", + note: "Requires a full restart" } ]; -- cgit