diff --git a/README.md b/README.md index 2f2c4977..67f34d11 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,6 @@ An enhanced version of [Vencord](https://github.com/Vendicated/Vencord) by [Vend - CutePats by thororen - DeadMembers by Kyuuhachi - Demonstration by Samwich -- DiscordColorways by DaBluLite - DNDWhilePlaying by thororen - DoNotLeak by Perny - DontFilterMe by Samwich diff --git a/src/equicordplugins/discordColorways/colorwaysAPI.ts b/src/equicordplugins/discordColorways/colorwaysAPI.ts deleted file mode 100644 index 67fdff32..00000000 --- a/src/equicordplugins/discordColorways/colorwaysAPI.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Vencord, a Discord client mod - * Copyright (c) 2024 Vendicated and contributors - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -export const ColorwayCSS = { - get: () => document.getElementById("activeColorwayCSS")!.textContent || "", - set: (e: string) => { - if (!document.getElementById("activeColorwayCSS")) { - document.head.append(Object.assign(document.createElement("style"), { - id: "activeColorwayCSS", - textContent: e - })); - } else (document.getElementById("activeColorwayCSS") as any).textContent = e; - }, - remove: () => document.getElementById("activeColorwayCSS")?.remove(), -}; diff --git a/src/equicordplugins/discordColorways/components/AutoColorwaySelector.tsx b/src/equicordplugins/discordColorways/components/AutoColorwaySelector.tsx deleted file mode 100644 index e949a488..00000000 --- a/src/equicordplugins/discordColorways/components/AutoColorwaySelector.tsx +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Vencord, a Discord client mod - * Copyright (c) 2024 Vendicated and contributors - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -import { DataStore, useEffect, useState } from "../"; -import { getAutoPresets } from "../css"; -import { ModalProps } from "../types"; - -export default function ({ modalProps, onChange, autoColorwayId = "" }: { modalProps: ModalProps, onChange: (autoPresetId: string) => void, autoColorwayId: string; }) { - const [autoId, setAutoId] = useState(autoColorwayId); - const [theme, setTheme] = useState("discord"); - - useEffect(() => { - async function load() { - setTheme(await DataStore.get("colorwaysPluginTheme") as string); - } - load(); - }, []); - return