mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Updates
This commit is contained in:
parent
89dd089eeb
commit
ab7547e698
2 changed files with 9 additions and 3 deletions
|
@ -27,6 +27,7 @@ import { openPluginModal } from "@components/PluginSettings/PluginModal";
|
||||||
import { AddonCard } from "@components/VencordSettings/AddonCard";
|
import { AddonCard } from "@components/VencordSettings/AddonCard";
|
||||||
import { QuickAction, QuickActionCard } from "@components/VencordSettings/quickActions";
|
import { QuickAction, QuickActionCard } from "@components/VencordSettings/quickActions";
|
||||||
import { SettingsTab, wrapTab } from "@components/VencordSettings/shared";
|
import { SettingsTab, wrapTab } from "@components/VencordSettings/shared";
|
||||||
|
import { isPluginEnabled } from "@plugins";
|
||||||
import { openInviteModal } from "@utils/discord";
|
import { openInviteModal } from "@utils/discord";
|
||||||
import { openModal } from "@utils/modal";
|
import { openModal } from "@utils/modal";
|
||||||
import { showItemInFolder } from "@utils/native";
|
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 { ComponentType, Ref, SyntheticEvent } from "react";
|
||||||
import type { UserstyleHeader } from "usercss-meta";
|
import type { UserstyleHeader } from "usercss-meta";
|
||||||
|
|
||||||
|
import Plugins from "~plugins";
|
||||||
|
|
||||||
import { UserCSSSettingsModal } from "./UserCSSModal";
|
import { UserCSSSettingsModal } from "./UserCSSModal";
|
||||||
|
|
||||||
type FileInput = ComponentType<{
|
type FileInput = ComponentType<{
|
||||||
|
@ -96,7 +99,7 @@ interface UserCSSCardProps {
|
||||||
|
|
||||||
function UserCSSThemeCard({ theme, enabled, onChange, onDelete, onSettingsReset }: UserCSSCardProps) {
|
function UserCSSThemeCard({ theme, enabled, onChange, onDelete, onSettingsReset }: UserCSSCardProps) {
|
||||||
const missingPlugins = useMemo(() =>
|
const missingPlugins = useMemo(() =>
|
||||||
theme.requiredPlugins?.filter(p => !Vencord.Plugins.isPluginEnabled(p)), [theme]);
|
theme.requiredPlugins?.filter(p => !isPluginEnabled(p)), [theme]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AddonCard
|
<AddonCard
|
||||||
|
@ -343,10 +346,10 @@ function ThemesTab() {
|
||||||
Icon={PaintbrushIcon}
|
Icon={PaintbrushIcon}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{Vencord.Settings.plugins.ClientTheme.enabled && (
|
{Settings.plugins.ClientTheme.enabled && (
|
||||||
<QuickAction
|
<QuickAction
|
||||||
text="Edit ClientTheme"
|
text="Edit ClientTheme"
|
||||||
action={() => openPluginModal(Vencord.Plugins.plugins.ClientTheme)}
|
action={() => openPluginModal(Plugins.ClientTheme)}
|
||||||
Icon={PencilIcon}
|
Icon={PencilIcon}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -43,6 +43,9 @@
|
||||||
],
|
],
|
||||||
"@webpack": [
|
"@webpack": [
|
||||||
"./webpack/webpack"
|
"./webpack/webpack"
|
||||||
|
],
|
||||||
|
"@plugins": [
|
||||||
|
"./plugins"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
|
Loading…
Reference in a new issue