aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-13 23:47:13 +0200
committerV <vendicated@riseup.net>2023-05-13 23:47:13 +0200
commitc062f9bdeb1eef02a2fc8b2c2411b715d727336f (patch)
tree6bec28406d8415106b9b9b8b0962c695a4fb1aa6 /src/plugins
parentf2ef96a420ce5a05d5717f99e3a6a00b61230bd8 (diff)
downloadVencord-c062f9bdeb1eef02a2fc8b2c2411b715d727336f.tar.gz
Vencord-c062f9bdeb1eef02a2fc8b2c2411b715d727336f.tar.bz2
Vencord-c062f9bdeb1eef02a2fc8b2c2411b715d727336f.zip
SpotifyControls: Add context menu icons
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/spotifyControls/PlayerComponent.tsx5
1 files changed, 5 insertions, 0 deletions
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}
/>
<Menu.MenuItem
key={openId}
id={openId}
label={`Open ${name} in Spotify`}
action={() => SpotifyStore.openExternal(path)}
+ icon={OpenExternalIcon}
/>
</Menu.Menu>
);
@@ -221,6 +224,7 @@ function AlbumContextMenu({ track }: { track: Track; }) {
id="open-album"
label="Open Album"
action={() => SpotifyStore.openExternal(`/album/${track.album.id}`)}
+ icon={OpenExternalIcon}
/>
<Menu.MenuItem
key="view-cover"
@@ -228,6 +232,7 @@ function AlbumContextMenu({ track }: { track: Track; }) {
label="View Album Cover"
// trolley
action={() => (Vencord.Plugins.plugins.ViewIcons as any).openImage(track.album.image.url)}
+ icon={ImageIcon}
/>
<Menu.MenuControlItem
id="spotify-volume"