diff --git a/src/plusplugins/spotifyActivityToggle/index.tsx b/src/plusplugins/spotifyActivityToggle/index.tsx new file mode 100644 index 00000000..d17e3176 --- /dev/null +++ b/src/plusplugins/spotifyActivityToggle/index.tsx @@ -0,0 +1,94 @@ +/* + * 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) { + const redLinePath = "M48.54 4.54a2.2 2.2 0 0 0-3.08-3.08l-44 44a2.2 2.2 0 1 0 3.08 3.08Z"; + const maskBlackPath = "M50.376 8.248 41.752-.376-.376 41.752 8.248 50.376Z"; + + return ( + + + {!enabled && <> + + + + + + } + + ); +} + +function SpotifyActivityToggleButton() { + const { spotifyConnection } = settings.store; + const setSpotifyConnection = value => settings.store.spotifyConnection = value; + + return ( +