diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-09-26 20:47:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 21:47:12 +0200 |
commit | 837d1fc08334f569da8fe332ee72ef8c8560d9ef (patch) | |
tree | ea7e55e23874f5822076a2ae3bfad7d44eb9ce86 /src/components | |
parent | 608a67c9ae4eea61bc532398ed615a4984db2ffc (diff) | |
download | Vencord-837d1fc08334f569da8fe332ee72ef8c8560d9ef.tar.gz Vencord-837d1fc08334f569da8fe332ee72ef8c8560d9ef.tar.bz2 Vencord-837d1fc08334f569da8fe332ee72ef8c8560d9ef.zip |
web: fix themes tab (#1756)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Icons.tsx | 19 | ||||
-rw-r--r-- | src/components/VencordSettings/ThemesTab.tsx | 4 |
2 files changed, 21 insertions, 2 deletions
diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx index 26364fc..93b1323 100644 --- a/src/components/Icons.tsx +++ b/src/components/Icons.tsx @@ -236,3 +236,22 @@ export function ReplyIcon(props: IconProps) { </Icon> ); } + +export function DeleteIcon(props: IconProps) { + return ( + <Icon + {...props} + className={classes(props.className, "vc-delete-icon")} + viewBox="0 0 24 24" + > + <path + fill="currentColor" + d="M15 3.999V2H9V3.999H3V5.999H21V3.999H15Z" + /> + <path + fill="currentColor" + d="M5 6.99902V18.999C5 20.101 5.897 20.999 7 20.999H17C18.103 20.999 19 20.101 19 18.999V6.99902H5ZM11 17H9V11H11V17ZM15 17H13V11H15V17Z" + /> + </Icon> + ); +} diff --git a/src/components/VencordSettings/ThemesTab.tsx b/src/components/VencordSettings/ThemesTab.tsx index 37d06c7..573f3b9 100644 --- a/src/components/VencordSettings/ThemesTab.tsx +++ b/src/components/VencordSettings/ThemesTab.tsx @@ -20,6 +20,7 @@ import { useSettings } from "@api/Settings"; import { classNameFactory } from "@api/Styles"; import { ErrorCard } from "@components/ErrorCard"; import { Flex } from "@components/Flex"; +import { DeleteIcon } from "@components/Icons"; import { Link } from "@components/Link"; import { IsFirefox } from "@utils/constants"; import { Margins } from "@utils/margins"; @@ -42,7 +43,6 @@ type FileInput = ComponentType<{ }>; const InviteActions = findByPropsLazy("resolveInvite"); -const TrashIcon = findByCodeLazy("M5 6.99902V18.999C5 20.101 5.897 20.999"); const FileInput: FileInput = findByCodeLazy("activateUploadDialogue="); const TextAreaProps = findLazy(m => typeof m.textarea === "string"); @@ -114,7 +114,7 @@ function ThemeCard({ theme, enabled, onChange, onDelete }: ThemeCardProps) { infoButton={ IS_WEB && ( <div style={{ cursor: "pointer", color: "var(--status-danger" }} onClick={onDelete}> - <TrashIcon /> + <DeleteIcon /> </div> ) } |