Equicord/src/plugins/clientTheme/index.tsx
2026-04-16 13:45:58 -04:00

38 lines
1.1 KiB
TypeScript

/*
* Vencord, a Discord client mod
* Copyright (c) 2023 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import "./clientTheme.css";
import { definePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants";
import definePlugin, { OptionType, StartAt } from "@utils/types";
import { ResetThemeColorComponent, ThemeSettingsComponent } from "./components/Settings";
import { disableClientTheme, startClientTheme } from "./utils/styleUtils";
export const settings = definePluginSettings({
color: {
type: OptionType.COMPONENT,
default: "313338",
component: ThemeSettingsComponent
},
resetColor: {
type: OptionType.COMPONENT,
component: ResetThemeColorComponent
}
});
export default definePlugin({
name: "ClientTheme",
authors: [Devs.Nuckyz],
description: "Recreation of the old client theme experiment. Add a color to your Discord client theme",
tags: ["Appearance", "Customisation"],
settings,
startAt: StartAt.DOMContentLoaded,
start: () => startClientTheme(settings.store.color),
stop: disableClientTheme
});