From a09a3a8a8f1cf6952e3e1dc9ca2b16ee2994c6eb Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 6 Nov 2024 04:00:38 -0500 Subject: [PATCH] Some To-Do Stuff --- src/equicordplugins/iRememberYou/index.tsx | 9 +++++++-- src/equicordplugins/themeLibrary/index.tsx | 8 +++++++- src/plugins/_core/settings.tsx | 7 +++++++ 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/iRememberYou/index.tsx b/src/equicordplugins/iRememberYou/index.tsx index 52de570b..b72c0bf0 100644 --- a/src/equicordplugins/iRememberYou/index.tsx +++ b/src/equicordplugins/iRememberYou/index.tsx @@ -366,8 +366,13 @@ export default definePlugin({ ); data.storageAutoSaveProtocol(); - // @ts-ignore - Vencord.Plugins.plugins.Settings.customSections.push(ID => ({ + const customSettingsSections = ( + Vencord.Plugins.plugins.Settings as any as { + customSections: ((ID: Record) => any)[]; + } + ).customSections; + + customSettingsSections.push(_ => ({ section: "iremeberyou.display-data", label: "IRememberYou", element: () => ui.toElement(data.usersCollection), diff --git a/src/equicordplugins/themeLibrary/index.tsx b/src/equicordplugins/themeLibrary/index.tsx index 59b26b9f..ae565eda 100644 --- a/src/equicordplugins/themeLibrary/index.tsx +++ b/src/equicordplugins/themeLibrary/index.tsx @@ -36,7 +36,13 @@ export default definePlugin({ id: "ThemeSection", }); - customSettingsSections.push(ThemeSection); + customSettingsSections.push(_ => ({ + section: "ThemeLibrary", + label: "Theme Library", + searchableTitles: ["Theme Library"], + element: require("./components/ThemeTab").default, + id: "ThemeSection", + })); }, stop() { diff --git a/src/plugins/_core/settings.tsx b/src/plugins/_core/settings.tsx index 4c49a2a2..2e362dc3 100644 --- a/src/plugins/_core/settings.tsx +++ b/src/plugins/_core/settings.tsx @@ -103,42 +103,49 @@ export default definePlugin({ { section: "EquicordSettings", label: "Equicord", + searchableTitles: ["Equicord", "Settings", "Equicord Settings"], element: VencordTab, className: "vc-settings" }, { section: "EquicordPlugins", label: "Plugins", + searchableTitles: ["Plugins"], element: PluginsTab, className: "vc-plugins" }, { section: "EquicordThemes", label: "Themes", + searchableTitles: ["Themes"], element: require("@components/ThemeSettings/ThemesTab").default, className: "vc-themes" }, !IS_UPDATER_DISABLED && { section: "EquicordUpdater", label: "Updater", + searchableTitles: ["Updater"], element: UpdaterTab, className: "vc-updater" }, { section: "EquicordCloud", label: "Cloud", + searchableTitles: ["Cloud"], element: CloudTab, className: "vc-cloud" }, { section: "EquicordSettingsSync", label: "Backup & Restore", + searchableTitles: ["Backup & Restore"], element: BackupAndRestoreTab, className: "vc-backup-restore" }, { section: "EquicordPatchHelper", label: "Patch Helper", + searchableTitles: ["Patch Helper"], element: PatchHelperTab, className: "vc-patch-helper" },