This commit is contained in:
thororen1234 2024-07-07 00:34:27 -04:00
parent 89dd089eeb
commit ab7547e698
2 changed files with 9 additions and 3 deletions

View file

@ -27,6 +27,7 @@ import { openPluginModal } from "@components/PluginSettings/PluginModal";
import { AddonCard } from "@components/VencordSettings/AddonCard";
import { QuickAction, QuickActionCard } from "@components/VencordSettings/quickActions";
import { SettingsTab, wrapTab } from "@components/VencordSettings/shared";
import { isPluginEnabled } from "@plugins";
import { openInviteModal } from "@utils/discord";
import { openModal } from "@utils/modal";
import { showItemInFolder } from "@utils/native";
@ -39,6 +40,8 @@ import { Button, Card, Forms, React, showToast, TabBar, TextInput, Tooltip, useE
import type { ComponentType, Ref, SyntheticEvent } from "react";
import type { UserstyleHeader } from "usercss-meta";
import Plugins from "~plugins";
import { UserCSSSettingsModal } from "./UserCSSModal";
type FileInput = ComponentType<{
@ -96,7 +99,7 @@ interface UserCSSCardProps {
function UserCSSThemeCard({ theme, enabled, onChange, onDelete, onSettingsReset }: UserCSSCardProps) {
const missingPlugins = useMemo(() =>
theme.requiredPlugins?.filter(p => !Vencord.Plugins.isPluginEnabled(p)), [theme]);
theme.requiredPlugins?.filter(p => !isPluginEnabled(p)), [theme]);
return (
<AddonCard
@ -343,10 +346,10 @@ function ThemesTab() {
Icon={PaintbrushIcon}
/>
{Vencord.Settings.plugins.ClientTheme.enabled && (
{Settings.plugins.ClientTheme.enabled && (
<QuickAction
text="Edit ClientTheme"
action={() => openPluginModal(Vencord.Plugins.plugins.ClientTheme)}
action={() => openPluginModal(Plugins.ClientTheme)}
Icon={PencilIcon}
/>
)}

View file

@ -43,6 +43,9 @@
],
"@webpack": [
"./webpack/webpack"
],
"@plugins": [
"./plugins"
]
},
"plugins": [