diff options
author | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2023-04-09 10:06:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 02:06:09 +0000 |
commit | 613fa9a57b1fe7985e526a9c7281b9188f535463 (patch) | |
tree | 6bf90c102dfff5a064985fa564b29f9d048babd1 /src/components | |
parent | 08822dd19064ea5b707117c5ed51f62dd0a8e316 (diff) | |
download | Vencord-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/components')
-rw-r--r-- | src/components/VencordSettings/VencordTab.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
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<false | { key: KeysOfType<typeof settings, boolean>; @@ -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" } ]; |