aboutsummaryrefslogtreecommitdiff
path: root/src/components
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/components
parentf2ef96a420ce5a05d5717f99e3a6a00b61230bd8 (diff)
downloadVencord-c062f9bdeb1eef02a2fc8b2c2411b715d727336f.tar.gz
Vencord-c062f9bdeb1eef02a2fc8b2c2411b715d727336f.tar.bz2
Vencord-c062f9bdeb1eef02a2fc8b2c2411b715d727336f.zip
SpotifyControls: Add context menu icons
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Icons.tsx33
-rw-r--r--src/components/iconStyles.css3
2 files changed, 36 insertions, 0 deletions
diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx
index c3905d9..d1cc7a6 100644
--- a/src/components/Icons.tsx
+++ b/src/components/Icons.tsx
@@ -16,6 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+import "./iconStyles.css";
+
import { classes } from "@utils/misc";
import type { PropsWithChildren } from "react";
@@ -81,3 +83,34 @@ export function CopyIcon(props: IconProps) {
</Icon>
);
}
+
+/**
+ * Discord's open external icon, as seen in the user profile connections
+ */
+export function OpenExternalIcon(props: IconProps) {
+ return (
+ <Icon
+ {...props}
+ className={classes(props.className, "vc-open-external-icon")}
+ viewBox="0 0 24 24"
+ >
+ <polygon
+ fill="currentColor"
+ fill-rule="nonzero"
+ points="13 20 11 20 11 8 5.5 13.5 4.08 12.08 12 4.16 19.92 12.08 18.5 13.5 13 8"
+ />
+ </Icon>
+ );
+}
+
+export function ImageIcon(props: IconProps) {
+ return (
+ <Icon
+ {...props}
+ className={classes(props.className, "vc-image-icon")}
+ viewBox="0 0 24 24"
+ >
+ <path fill="currentColor" d="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z" />
+ </Icon>
+ );
+}
diff --git a/src/components/iconStyles.css b/src/components/iconStyles.css
new file mode 100644
index 0000000..9f2ef8e
--- /dev/null
+++ b/src/components/iconStyles.css
@@ -0,0 +1,3 @@
+.vc-open-external-icon {
+ transform: rotate(45deg);
+}