From c062f9bdeb1eef02a2fc8b2c2411b715d727336f Mon Sep 17 00:00:00 2001 From: V Date: Sat, 13 May 2023 23:47:13 +0200 Subject: SpotifyControls: Add context menu icons --- src/plugins/spotifyControls/PlayerComponent.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/spotifyControls/PlayerComponent.tsx b/src/plugins/spotifyControls/PlayerComponent.tsx index 7076085..f4c7c81 100644 --- a/src/plugins/spotifyControls/PlayerComponent.tsx +++ b/src/plugins/spotifyControls/PlayerComponent.tsx @@ -20,6 +20,7 @@ import "./spotifyStyles.css"; import ErrorBoundary from "@components/ErrorBoundary"; import { Flex } from "@components/Flex"; +import { ImageIcon, LinkIcon, OpenExternalIcon } from "@components/Icons"; import { Link } from "@components/Link"; import { debounce } from "@utils/debounce"; import { classes, copyWithToast } from "@utils/misc"; @@ -88,12 +89,14 @@ function CopyContextMenu({ name, path }: { name: string; path: string; }) { id={copyId} label={`Copy ${name} Link`} action={() => copyWithToast("https://open.spotify.com" + path)} + icon={LinkIcon} /> SpotifyStore.openExternal(path)} + icon={OpenExternalIcon} /> ); @@ -221,6 +224,7 @@ function AlbumContextMenu({ track }: { track: Track; }) { id="open-album" label="Open Album" action={() => SpotifyStore.openExternal(`/album/${track.album.id}`)} + icon={OpenExternalIcon} /> (Vencord.Plugins.plugins.ViewIcons as any).openImage(track.album.image.url)} + icon={ImageIcon} />