Fixes For Some Icons

This commit is contained in:
thororen1234 2025-01-29 08:28:13 -05:00
parent e2ae53a2df
commit 302eccacc2
3 changed files with 53 additions and 46 deletions

View file

@ -20,8 +20,9 @@ import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types"; import definePlugin from "@utils/types";
import { Message } from "discord-types/general"; import { Message } from "discord-types/general";
const PinIcon = ({ style = {} }) => <svg className="icon__9293f" aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M19.38 11.38a3 3 0 0 0 4.24 0l.03-.03a.5.5 0 0 0 0-.7L13.35.35a.5.5 0 0 0-.7 0l-.03.03a3 3 0 0 0 0 4.24L13 5l-2.92 2.92-3.65-.34a2 2 0 0 0-1.6.58l-.62.63a1 1 0 0 0 0 1.42l9.58 9.58a1 1 0 0 0 1.42 0l.63-.63a2 2 0 0 0 .58-1.6l-.34-3.64L19 11l.38.38ZM9.07 17.07a.5.5 0 0 1-.08.77l-5.15 3.43a.5.5 0 0 1-.63-.06l-.42-.42a.5.5 0 0 1-.06-.63L6.16 15a.5.5 0 0 1 .77-.08l2.14 2.14Z" className="" style={style}></path></svg>; function PinIcon({ style = {} }) {
return <svg className="icon__9293f" aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M19.38 11.38a3 3 0 0 0 4.24 0l.03-.03a.5.5 0 0 0 0-.7L13.35.35a.5.5 0 0 0-.7 0l-.03.03a3 3 0 0 0 0 4.24L13 5l-2.92 2.92-3.65-.34a2 2 0 0 0-1.6.58l-.62.63a1 1 0 0 0 0 1.42l9.58 9.58a1 1 0 0 0 1.42 0l.63-.63a2 2 0 0 0 .58-1.6l-.34-3.64L19 11l.38.38ZM9.07 17.07a.5.5 0 0 1-.08.77l-5.15 3.43a.5.5 0 0 1-.63-.06l-.42-.42a.5.5 0 0 1-.06-.63L6.16 15a.5.5 0 0 1 .77-.08l2.14 2.14Z" className="" style={style}></path></svg>;
}
export default definePlugin({ export default definePlugin({
name: "PinIcon", name: "PinIcon",
description: "Adds a pin icon to pinned messages", description: "Adds a pin icon to pinned messages",

View file

@ -44,37 +44,41 @@ interface ContextMenuProps {
user: User; user: User;
} }
const ArrowsLeftRightIcon = <svg function ArrowsLeftRightIcon() {
xmlns="http://www.w3.org/2000/svg" return <svg
width="16" xmlns="http://www.w3.org/2000/svg"
height="16" width="16"
viewBox="0 0 24 24" height="16"
fill="none" viewBox="0 0 24 24"
stroke="currentColor" fill="none"
strokeWidth="2" stroke="currentColor"
strokeLinecap="round" strokeWidth="2"
strokeLinejoin="round" strokeLinecap="round"
> strokeLinejoin="round"
<polyline points="17 11 21 7 17 3" /> >
<line x1="21" y1="7" x2="9" y2="7" /> <polyline points="17 11 21 7 17 3" />
<polyline points="7 21 3 17 7 13" /> <line x1="21" y1="7" x2="9" y2="7" />
<line x1="15" y1="17" x2="3" y2="17" /> <polyline points="7 21 3 17 7 13" />
</svg>; <line x1="15" y1="17" x2="3" y2="17" />
</svg>;
}
const XSmallIcon = <svg function XSmallIcon() {
xmlns="http://www.w3.org/2000/svg" return <svg
width="16" xmlns="http://www.w3.org/2000/svg"
height="16" width="16"
viewBox="0 0 24 24" height="16"
fill="none" viewBox="0 0 24 24"
stroke="currentColor" fill="none"
strokeWidth="2" stroke="currentColor"
strokeLinecap="round" strokeWidth="2"
strokeLinejoin="round" strokeLinecap="round"
> strokeLinejoin="round"
<line x1="18" y1="6" x2="6" y2="18" /> >
<line x1="6" y1="6" x2="18" y2="18" /> <line x1="18" y1="6" x2="6" y2="18" />
</svg>; <line x1="6" y1="6" x2="18" y2="18" />
</svg>;
}
function MakeContextCallback(name: "user" | "channel"): NavContextMenuPatchCallback { function MakeContextCallback(name: "user" | "channel"): NavContextMenuPatchCallback {
return (children, { user, channel, guildId }: ContextMenuProps) => { return (children, { user, channel, guildId }: ContextMenuProps) => {

View file

@ -46,20 +46,22 @@ interface Emoji {
id: bigint | null; id: bigint | null;
name: string; name: string;
} }
const CircleXIcon = <svg function CircleXIcon() {
xmlns="http://www.w3.org/2000/svg" return <svg
width="16" height="16" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24" width="16" height="16"
fill="none" viewBox="0 0 24 24"
stroke="currentColor" fill="none"
strokeWidth="2" stroke="currentColor"
strokeLinecap="round" strokeWidth="2"
strokeLinejoin="round" strokeLinecap="round"
> strokeLinejoin="round"
<circle cx="12" cy="12" r="10" /> >
<line x1="15" y1="9" x2="9" y2="15" /> <circle cx="12" cy="12" r="10" />
<line x1="9" y1="9" x2="15" y2="15" /> <line x1="15" y1="9" x2="9" y2="15" />
</svg>; <line x1="9" y1="9" x2="15" y2="15" />
</svg>;
}
interface DiscordStatus { interface DiscordStatus {
emojiInfo: Emoji | null; emojiInfo: Emoji | null;
text: string; text: string;