aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fixSpotifyEmbeds.desktop.ts
blob: 44199127fba981625a2d9b06ec2fc5c588dda580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Vencord, a Discord client mod
 * Copyright (c) 2023 Vendicated and contributors
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

import { definePluginSettings } from "@api/Settings";
import { makeRange } from "@components/PluginSettings/components";
import { Devs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types";

// The entire code of this plugin can be found in ipcPlugins
export default definePlugin({
    name: "FixSpotifyEmbeds",
    description: "Fixes spotify embeds being incredibly loud by letting you customise the volume",
    authors: [Devs.Ven],
    settings: definePluginSettings({
        volume: {
            type: OptionType.SLIDER,
            description: "The volume % to set for spotify embeds. Anything above 10% is veeeery loud",
            markers: makeRange(0, 100, 10),
            stickToMarkers: false,
            default: 10
        }
    })
});