Plugin
ClientTheme
Recreation of the old client theme experiment. Add a color to your Discord client theme
1
/*2
* FiveCord — a Discord client mod3
* Copyright (c) 2025 FiveCord4
* SPDX-License-Identifier: GPL-3.0-or-later5
*/6
7
import "./clientTheme.css";8
9
import { definePluginSettings } from "@api/Settings";10
import { Devs } from "@utils/constants";11
import definePlugin, { OptionType, StartAt } from "@utils/types";12
13
import { ResetThemeColorComponent, ThemeSettingsComponent } from "./components/Settings";14
import { disableClientTheme, startClientTheme } from "./utils/styleUtils";15
16
export const settings = definePluginSettings({17
color: {18
type: OptionType.COMPONENT,19
default: "313338",20
component: ThemeSettingsComponent21
},22
resetColor: {23
type: OptionType.COMPONENT,24
component: ResetThemeColorComponent25
}26
});27
28
export default definePlugin({29
name: "ClientTheme",30
authors: [Devs.Nuckyz],31
description: "Recreation of the old client theme experiment. Add a color to your Discord client theme",32
tags: ["Appearance", "Customisation"],33
settings,34
35
startAt: StartAt.DOMContentLoaded,36
start: () => startClientTheme(settings.store.color),37
stop: disableClientTheme38
});39