From 72f99b6c8cadb9080915a18eca0f9fddf9422dad Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 29 Apr 2026 19:03:09 -0400 Subject: [PATCH] tidy up equicord tab code a little --- .../settings/tabs/vencord/index.tsx | 29 +++++-------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/src/components/settings/tabs/vencord/index.tsx b/src/components/settings/tabs/vencord/index.tsx index a88d7ca54..25b567411 100644 --- a/src/components/settings/tabs/vencord/index.tsx +++ b/src/components/settings/tabs/vencord/index.tsx @@ -64,45 +64,38 @@ function EquicordSettings() { title: string; description?: string; restartRequired?: boolean; - warning: { enabled: boolean; message?: string; }; + warning?: string; } > = [ { key: "useQuickCss", title: "Enable Custom CSS", description: "Load custom CSS from the QuickCSS editor. This allows you to customize Discord's appearance with your own styles.", - restartRequired: true, - warning: { enabled: false }, }, !IS_WEB && { key: "enableReactDevtools", title: "Enable React Developer Tools", description: "Enable the React Developer Tools extension for debugging Discord's React components. Useful for plugin development.", restartRequired: true, - warning: { enabled: false }, }, (!IS_WEB && !IS_DISCORD_DESKTOP || !IS_WINDOWS) && { key: "mainWindowFrameless", title: "Disable the Main Window Frame", description: "Remove the native window frame for a cleaner look. You can still move the window by dragging the title bar area.", restartRequired: true, - warning: { enabled: false }, }, - !IS_WEB && - (!IS_DISCORD_DESKTOP || !IS_WINDOWS + !IS_WEB && (!IS_DISCORD_DESKTOP || !IS_WINDOWS ? { key: "frameless", title: "Disable All Window Frames", description: "Remove the native window frame for a cleaner look. You can still move the window by dragging the title bar area.", restartRequired: true, - warning: { enabled: false }, } : { key: "winNativeTitleBar", title: "Use Windows' native title bar instead of Discord's custom one", description: "Replace Discord's custom title bar with the standard Windows title bar. This may improve compatibility with some window management tools.", restartRequired: true, - warning: { enabled: false }, } ), !IS_WEB && { @@ -110,27 +103,21 @@ function EquicordSettings() { title: "Enable Window Transparency", description: "Make the Discord window transparent. A theme that supports transparency is required or this will do nothing.", restartRequired: true, - warning: { - enabled: true, - message: IS_WINDOWS - ? "This will stop the window from being resizable and prevents you from snapping the window to screen edges." - : "This will stop the window from being resizable.", - }, + warning: IS_WINDOWS + ? "This will stop the window from being resizable and prevents you from snapping the window to screen edges." + : "This will stop the window from being resizable.", }, IS_DISCORD_DESKTOP && { key: "disableMinSize", title: "Disable Minimum Window Size", description: "Allow the Discord window to be resized smaller than its default minimum size. Useful for tiling window managers or small screens.", restartRequired: true, - warning: { enabled: false }, }, - !IS_WEB && - IS_WINDOWS && { + !IS_WEB && IS_WINDOWS && { key: "winCtrlQ", title: "Register Ctrl+Q as shortcut to close Discord", description: "Add Ctrl+Q as a keyboard shortcut to close Discord. This provides an alternative to Alt+F4 for quickly closing the application.", restartRequired: true, - warning: { enabled: false }, }, ]; @@ -264,11 +251,11 @@ function EquicordSettings() { }} title={s.title} description={ - s.warning.enabled ? ( + s.warning ? ( <> {s.description} - {s.warning.message} + {s.warning} ) : (