aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fixSpotifyEmbeds.desktop
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-09-24 16:02:18 +0200
committerV <vendicated@riseup.net>2023-09-24 16:02:18 +0200
commit30ac25607023752031aa98060cbf8a736109992d (patch)
tree79bb82b6634ef601db6c98e751275607ec54dbea /src/plugins/fixSpotifyEmbeds.desktop
parentd0e2a324717e600736a18b88fe89a21c640a406b (diff)
downloadVencord-30ac25607023752031aa98060cbf8a736109992d.tar.gz
Vencord-30ac25607023752031aa98060cbf8a736109992d.tar.bz2
Vencord-30ac25607023752031aa98060cbf8a736109992d.zip
migrate all plugins to folders
Diffstat (limited to 'src/plugins/fixSpotifyEmbeds.desktop')
-rw-r--r--src/plugins/fixSpotifyEmbeds.desktop/index.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/fixSpotifyEmbeds.desktop/index.ts b/src/plugins/fixSpotifyEmbeds.desktop/index.ts
new file mode 100644
index 0000000..4419912
--- /dev/null
+++ b/src/plugins/fixSpotifyEmbeds.desktop/index.ts
@@ -0,0 +1,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
+ }
+ })
+});