Plugin

ClientTheme

Recreation of the old client theme experiment. Add a color to your Discord client theme

Appearance Customisation
index.tsx
Download

Source

src/plugins/clientTheme/index.tsx
1import "./clientTheme.css";
2
3import { definePluginSettings } from "@api/Settings";
4import { Devs } from "@utils/constants";
5import definePlugin, { OptionType, StartAt } from "@utils/types";
6
7import { ResetThemeColorComponent, ThemeSettingsComponent } from "./components/Settings";
8import { disableClientTheme, startClientTheme } from "./utils/styleUtils";
9
10export const settings = definePluginSettings({
11 color: {
12 type: OptionType.COMPONENT,
13 default: "313338",
14 component: ThemeSettingsComponent
15 },
16 resetColor: {
17 type: OptionType.COMPONENT,
18 component: ResetThemeColorComponent
19 }
20});
21
22export default definePlugin({
23 name: "ClientTheme",
24 authors: [Devs.Nuckyz],
25 description: "Recreation of the old client theme experiment. Add a color to your Discord client theme",
26 tags: ["Appearance", "Customisation"],
27 settings,
28
29 startAt: StartAt.DOMContentLoaded,
30 start: () => startClientTheme(settings.store.color),
31 stop: disableClientTheme
32});
33