From 1c79187e6a84305d722f52c74ca7a14ab7a6a88d Mon Sep 17 00:00:00 2001 From: luk1337 Date: Mon, 17 Aug 2026 02:50:21 +0200 Subject: [PATCH] Make rounded corners and shadow customizable (#1281) Co-authored-by: V --- src/main/mainWindow.ts | 14 ++++++++++++-- src/renderer/components/settings/Settings.tsx | 14 ++++++++++++++ src/shared/settings.d.ts | 2 ++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 979629d..daf0c0c 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -312,8 +312,16 @@ function getWindowBoundsOptions(): BrowserWindowConstructorOptions { } function buildBrowserWindowOptions(): BrowserWindowConstructorOptions { - const { staticTitle, transparencyOption, enableMenu, customTitleBar, splashTheming, splashBackground } = - Settings.store; + const { + staticTitle, + transparencyOption, + enableMenu, + enableShadow, + enableRoundedCorners, + customTitleBar, + splashTheming, + splashBackground + } = Settings.store; const { frameless, transparent, macosVibrancyStyle } = VencordSettings.store; @@ -336,6 +344,8 @@ function buildBrowserWindowOptions(): BrowserWindowConstructorOptions { }, frame: !noFrame, autoHideMenuBar: enableMenu, + hasShadow: enableShadow !== false, + roundedCorners: enableRoundedCorners !== false, ...getWindowBoundsOptions() }; diff --git a/src/renderer/components/settings/Settings.tsx b/src/renderer/components/settings/Settings.tsx index e0d0b0d..add6698 100644 --- a/src/renderer/components/settings/Settings.tsx +++ b/src/renderer/components/settings/Settings.tsx @@ -74,6 +74,20 @@ const SettingsOptions: Record> defaultValue: false, disabled: () => Settings.store.customTitleBar ?? isWindows }, + { + key: "enableShadow", + title: "Enable Window Shadow", + description: "Enables the window shadow. Requires a full restart.", + defaultValue: true, + disabled: () => Settings.store.customTitleBar !== true + }, + { + key: "enableRoundedCorners", + title: "Enable Rounded Corners", + description: "Enables rounded corners. Requires a full restart.", + defaultValue: true, + disabled: () => Settings.store.customTitleBar !== true + }, { key: "enableSplashScreen", title: "Enable Splash Screen", diff --git a/src/shared/settings.d.ts b/src/shared/settings.d.ts index f992d61..53065c9 100644 --- a/src/shared/settings.d.ts +++ b/src/shared/settings.d.ts @@ -20,6 +20,8 @@ export interface Settings { openLinksWithElectron?: boolean; staticTitle?: boolean; enableMenu?: boolean; + enableShadow?: boolean; + enableRoundedCorners?: boolean; disableSmoothScroll?: boolean; hardwareAcceleration?: boolean; hardwareVideoAcceleration?: boolean;