From 072ad3d7e67300c1de25858b790670a46fb6c10e Mon Sep 17 00:00:00 2001 From: Kaydax Date: Sat, 28 Jan 2023 17:54:38 -0500 Subject: [PATCH] feat(settings): Add the ability to make the window transparent (#457) --- src/api/settings.ts | 2 ++ src/components/VencordSettings/VencordTab.tsx | 7 +++++++ src/patcher.ts | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/src/api/settings.ts b/src/api/settings.ts index 4cdb24b6..d20e9642 100644 --- a/src/api/settings.ts +++ b/src/api/settings.ts @@ -32,6 +32,7 @@ export interface Settings { enableReactDevtools: boolean; themeLinks: string[]; frameless: boolean; + transparent: boolean; winCtrlQ: boolean; plugins: { [plugin: string]: { @@ -48,6 +49,7 @@ const DefaultSettings: Settings = { themeLinks: [], enableReactDevtools: false, frameless: false, + transparent: false, winCtrlQ: false, plugins: {} }; diff --git a/src/components/VencordSettings/VencordTab.tsx b/src/components/VencordSettings/VencordTab.tsx index e1632b19..9f55d57f 100644 --- a/src/components/VencordSettings/VencordTab.tsx +++ b/src/components/VencordSettings/VencordTab.tsx @@ -108,6 +108,13 @@ function VencordSettings() { > Disable the window frame + settings.transparent = v} + note="Requires a full restart" + > + Enable window transparency + {navigator.platform.toLowerCase().startsWith("win") && (