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 { 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({
name: "PinIcon",
description: "Adds a pin icon to pinned messages",

View file

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

View file

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