diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 65b70d2..99780bb 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -298,6 +298,10 @@ function initSettingsListeners(win: BrowserWindow) { win.setBackgroundColor("#ffffff"); } }); + + addSettingsListener("enableMenu", enabled => { + win.setAutoHideMenuBar(enabled ?? false); + }); } function initSpellCheck(win: BrowserWindow) { @@ -311,7 +315,7 @@ function createMainWindow() { removeSettingsListeners(); removeVencordSettingsListeners(); - const { staticTitle, transparencyOption } = Settings.store; + const { staticTitle, transparencyOption, enableMenu } = Settings.store; const { frameless, macosTranslucency } = VencordSettings.store; const win = (mainWin = new BrowserWindow({ show: false, @@ -340,7 +344,8 @@ function createMainWindow() { } : {}), ...(process.platform === "darwin" ? { titleBarStyle: "hiddenInset" } : {}), - ...getWindowBoundsOptions() + ...getWindowBoundsOptions(), + autoHideMenuBar: enableMenu })); win.setMenuBarVisibility(false); diff --git a/src/renderer/components/Settings.tsx b/src/renderer/components/Settings.tsx index ff935db..c70dbe2 100644 --- a/src/renderer/components/Settings.tsx +++ b/src/renderer/components/Settings.tsx @@ -40,7 +40,8 @@ export default function SettingsUi() { "Open Links in app (experimental)", "Opens links in a new Vesktop window instead of your web browser" ], - ["staticTitle", "Static Title", 'Makes the window title "Vencord" instead of changing to the current page'] + ["staticTitle", "Static Title", 'Makes the window title "Vencord" instead of changing to the current page'], + ["enableMenu", "Enable Menu Bar", "Enables the application menu bar. Press ALT to toggle visibility."] ]; const switches = allSwitches.filter(isTruthy); diff --git a/src/shared/settings.d.ts b/src/shared/settings.d.ts index 8366ce0..e387351 100644 --- a/src/shared/settings.d.ts +++ b/src/shared/settings.d.ts @@ -19,6 +19,7 @@ export interface Settings { minimizeToTray?: boolean; skippedUpdate?: string; staticTitle?: boolean; + enableMenu?: boolean; arRPC?: boolean; appBadge?: boolean;