Make rounded corners and shadow customizable (#1281)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
luk1337
2026-08-17 00:50:21 +00:00
committed by GitHub
co-authored by V
parent 04e902705e
commit 1c79187e6a
3 changed files with 28 additions and 2 deletions
+12 -2
View File
@@ -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()
};