Plugin
ClientTheme
Recreation of the old client theme experiment. Add a color to your Discord client theme
1
import "./clientTheme.css";2
3
import { definePluginSettings } from "@api/Settings";4
import { Devs } from "@utils/constants";5
import definePlugin, { OptionType, StartAt } from "@utils/types";6
7
import { ResetThemeColorComponent, ThemeSettingsComponent } from "./components/Settings";8
import { disableClientTheme, startClientTheme } from "./utils/styleUtils";9
10
export const settings = definePluginSettings({11
color: {12
type: OptionType.COMPONENT,13
default: "313338",14
component: ThemeSettingsComponent15
},16
resetColor: {17
type: OptionType.COMPONENT,18
component: ResetThemeColorComponent19
}20
});21
22
export 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: disableClientTheme32
});33