From ae65883335f24c999e134403a6cddceed5ad39d4 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 9 Oct 2025 21:01:48 +0200 Subject: [PATCH] fix broken Settings ui --- src/components/settings/tabs/BaseTab.tsx | 4 +- .../settings/tabs/plugins/PluginModal.tsx | 29 ++-- .../settings/tabs/plugins/index.tsx | 31 +++-- .../settings/tabs/sync/CloudTab.tsx | 12 +- .../settings/tabs/themes/LocalThemesTab.tsx | 5 +- .../settings/tabs/themes/OnlineThemesTab.tsx | 5 +- .../tabs/vencord/MacVibrancySettings.tsx | 124 +++++++++--------- .../tabs/vencord/NotificationSettings.tsx | 5 +- .../settings/tabs/vencord/index.tsx | 11 +- .../decor/ui/modals/CreateDecorationModal.tsx | 10 +- src/plugins/fakeProfileThemes/index.tsx | 4 +- src/plugins/ignoreActivities/index.tsx | 4 +- .../pinDms/components/CreateCategoryModal.tsx | 8 +- .../startupTimings/StartupTimingPage.tsx | 10 +- src/plugins/vcNarrator/VoiceSetting.tsx | 4 +- src/plugins/vcNarrator/index.tsx | 4 +- src/webpack/common/components.ts | 8 +- 17 files changed, 151 insertions(+), 127 deletions(-) diff --git a/src/components/settings/tabs/BaseTab.tsx b/src/components/settings/tabs/BaseTab.tsx index 9ef95463c..9a2b7f6d4 100644 --- a/src/components/settings/tabs/BaseTab.tsx +++ b/src/components/settings/tabs/BaseTab.tsx @@ -25,7 +25,7 @@ import type { ComponentType, PropsWithChildren } from "react"; export function SettingsTab({ title, children }: PropsWithChildren<{ title: string; }>) { return ( - +
{children} - +
); } diff --git a/src/components/settings/tabs/plugins/PluginModal.tsx b/src/components/settings/tabs/plugins/PluginModal.tsx index 3332b1fc1..e402e40b6 100644 --- a/src/components/settings/tabs/plugins/PluginModal.tsx +++ b/src/components/settings/tabs/plugins/PluginModal.tsx @@ -105,14 +105,15 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti const Component = OptionComponentMap[setting.type]; return ( - + + + ); }); @@ -153,7 +154,7 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti - +
{plugin.description} {!pluginMeta.userPlugin && ( @@ -193,22 +194,22 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti )} /> - +
{!!plugin.settingsAboutComponent && (
- +
- +
)} - +
Settings {renderSettings()} - +
); diff --git a/src/components/settings/tabs/plugins/index.tsx b/src/components/settings/tabs/plugins/index.tsx index 4db9699ac..8326adaea 100644 --- a/src/components/settings/tabs/plugins/index.tsx +++ b/src/components/settings/tabs/plugins/index.tsx @@ -21,6 +21,7 @@ import "./styles.css"; import * as DataStore from "@api/DataStore"; import { useSettings } from "@api/Settings"; import { classNameFactory } from "@api/Styles"; +import ErrorBoundary from "@components/ErrorBoundary"; import { SettingsTab, wrapTab } from "@components/settings/tabs/BaseTab"; import { ChangeList } from "@utils/ChangeList"; import { Logger } from "@utils/Logger"; @@ -249,20 +250,24 @@ function PluginSettings() {
- + + +
- v === searchValue.status} + closeOnSelect={true} + /> +
diff --git a/src/components/settings/tabs/sync/CloudTab.tsx b/src/components/settings/tabs/sync/CloudTab.tsx index 0afa575df..33045ae88 100644 --- a/src/components/settings/tabs/sync/CloudTab.tsx +++ b/src/components/settings/tabs/sync/CloudTab.tsx @@ -70,7 +70,9 @@ function SettingsSyncSection() { const sectionEnabled = cloud.authenticated && cloud.settingsSync; return ( - +
+ Settings Sync + Synchronize your settings to the cloud. This allows easy synchronization across multiple devices with minimal effort. @@ -113,7 +115,7 @@ function SettingsSyncSection() { Delete Cloud Settings - +
); } @@ -122,7 +124,9 @@ function CloudTab() { return ( - +
+ Cloud Settings + Vencord comes with a cloud integration that adds goodies like settings sync across devices. It respects your privacy, and @@ -186,7 +190,7 @@ function CloudTab() { - +
); diff --git a/src/components/settings/tabs/themes/LocalThemesTab.tsx b/src/components/settings/tabs/themes/LocalThemesTab.tsx index 8d07a27cd..a958ab77a 100644 --- a/src/components/settings/tabs/themes/LocalThemesTab.tsx +++ b/src/components/settings/tabs/themes/LocalThemesTab.tsx @@ -99,7 +99,8 @@ export function LocalThemesTab() { Make sure all your assets are hosted on GitHub, GitLab, Codeberg, Imgur, Discord or Google Fonts. - +
+ Local Themes <> {IS_WEB ? @@ -164,7 +165,7 @@ export function LocalThemesTab() { /> ))} - +
); } diff --git a/src/components/settings/tabs/themes/OnlineThemesTab.tsx b/src/components/settings/tabs/themes/OnlineThemesTab.tsx index faca96dcb..87f583810 100644 --- a/src/components/settings/tabs/themes/OnlineThemesTab.tsx +++ b/src/components/settings/tabs/themes/OnlineThemesTab.tsx @@ -40,7 +40,8 @@ export function OnlineThemesTab() { Make sure to use direct links to files (raw or github.io)! - +
+ Online Themes