diff --git a/src/interface/components/ThemeCover.tsx b/src/interface/components/ThemeCover.tsx index 18ee8cb4..39642244 100644 --- a/src/interface/components/ThemeCover.tsx +++ b/src/interface/components/ThemeCover.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { CustomTheme } from '../types/CustomThemes'; import browser from 'webextension-polyfill'; -import { PencilIcon } from '@heroicons/react/24/outline'; +import { ArrowUpOnSquareIcon, PencilIcon, ShareIcon } from '@heroicons/react/24/outline'; type ThemeCoverProps = { theme: Omit; @@ -45,12 +45,21 @@ export const ThemeCover: React.FC = ({ )} { isEditMode ? <> : + <>
browser.runtime.sendMessage({ type: 'currentTab', info: 'OpenThemeCreator', body: { themeID: theme.id } })} + className="absolute z-20 flex w-8 h-8 p-2 text-white transition-all rounded-full delay-[20ms] opacity-0 top-1 right-2 dark:bg-black/50 place-items-center group-hover:opacity-100 group-hover:top-[1.25rem]" + onClick={(event) => { event?.preventDefault(), browser.runtime.sendMessage({ type: 'currentTab', info: 'OpenThemeCreator', body: { themeID: theme.id } }) }} >
+ +
{ event?.preventDefault(), browser.runtime.sendMessage({ type: 'currentTab', info: 'ShareTheme', body: { themeID: theme.id } }) }} + > + +
+ }
diff --git a/src/interface/components/ThemeSelector.tsx b/src/interface/components/ThemeSelector.tsx index 3f41e96c..8c4b9639 100644 --- a/src/interface/components/ThemeSelector.tsx +++ b/src/interface/components/ThemeSelector.tsx @@ -120,7 +120,7 @@ const ThemeSelector: ForwardRefExoticComponent &