diff --git a/README.md b/README.md index 7209e2f3..94689378 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,8 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch - Signature by Ven, Rini, ImBanana, KrystalSkull - Slap by Korbo - SoundBoardLogger by Moxxie, fres, echo, maintained by thororen -- - SplitLargeMessages by Reycko +- SplitLargeMessages by Reycko +- SpotifyActivityToggle by thororen - SpotifyLyrics by Joona - StatsfmPresence by Crxa - StatusPresets by iamme diff --git a/src/equicordplugins/spotifyActivityToggle/index.tsx b/src/equicordplugins/spotifyActivityToggle/index.tsx new file mode 100644 index 00000000..768e0b94 --- /dev/null +++ b/src/equicordplugins/spotifyActivityToggle/index.tsx @@ -0,0 +1,84 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2025 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { definePluginSettings } from "@api/Settings"; +import ErrorBoundary from "@components/ErrorBoundary"; +import { EquicordDevs } from "@utils/constants"; +import definePlugin, { OptionType } from "@utils/types"; +import { findComponentByCodeLazy } from "@webpack"; +import { Constants, React, RestAPI } from "@webpack/common"; + +const Button = findComponentByCodeLazy(".NONE,disabled:", ".PANEL_BUTTON"); + +function makeSpotifyIcon(enabled: boolean) { + return ( + + + + ); +} + +function SpotifyActivityToggleButton() { + const { spotifyConnection } = settings.store; + const setSpotifyConnection = value => settings.store.spotifyConnection = value; + + return ( +