diff --git a/src/equicordplugins/customUserColors/SetColorModal.tsx b/src/equicordplugins/customUserColors/SetColorModal.tsx index bdb36d6a..b532d64b 100644 --- a/src/equicordplugins/customUserColors/SetColorModal.tsx +++ b/src/equicordplugins/customUserColors/SetColorModal.tsx @@ -63,7 +63,7 @@ export function SetColorModal({ userId, modalProps }: { userId: string, modalPro
- Pick a color + Pick a Color = {}; + (async () => { colors = await get>(DATASTORE_KEY) || {}; })(); // needed for color picker to be available without opening settings (ty pindms!!) const requireSettingsMenu = extractAndLoadChunksLazy(['name:"UserSettings"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}"UserSettings"/); +const ColorIcon = () => { + return ( + + ); +}; const userContextMenuPatch: NavContextMenuPatchCallback = (children, { user }: { user: User; }) => { if (user?.id == null) return; @@ -35,6 +49,7 @@ const userContextMenuPatch: NavContextMenuPatchCallback = (children, { user }: { { await requireSettingsMenu(); openModal(modalProps => ); diff --git a/src/equicordplugins/sidebarChat/index.tsx b/src/equicordplugins/sidebarChat/index.tsx index 591826c5..9bf808fc 100644 --- a/src/equicordplugins/sidebarChat/index.tsx +++ b/src/equicordplugins/sidebarChat/index.tsx @@ -34,7 +34,19 @@ const Resize = findComponentByCodeLazy("sidebarType:", "homeSidebarWidth"); const ChannelHeader = findComponentByCodeLazy("#{intl::HUB_DIRECTORY_CHANNEL_TITLE}"); const ChatInputTypes = findByPropsLazy("FORM", "NORMAL"); const Sidebars = findByPropsLazy("ThreadSidebar", "MessageRequestSidebar"); - +const SidebarIcon = () => { + return ( + + ); +}; interface ContextMenuProps { channel: Channel; @@ -43,7 +55,7 @@ interface ContextMenuProps { } const ArrowsLeftRightIcon = findComponentByCodeLazy("18.58V3a1"); -const XSmallIcon = findComponentByCodeLazy("13.42l5.3"); +const XSmallIcon = findComponentByCodeLazy("12l4.94-4.94a1.5") function MakeContextCallback(name: "user" | "channel"): NavContextMenuPatchCallback { return (children, { user, channel, guildId }: ContextMenuProps) => { @@ -58,6 +70,7 @@ function MakeContextCallback(name: "user" | "channel"): NavContextMenuPatchCallb { FluxDispatcher.dispatch({ // @ts-ignore @@ -122,7 +135,7 @@ export default definePlugin({ <> } - tooltip="Switch channels" + tooltip="Switch Channels" onClick={() => { const currentChannel = ChannelStore.getChannel(SelectedChannelStore.getChannelId()); FluxDispatcher.dispatch({ @@ -136,7 +149,7 @@ export default definePlugin({ }} /> ()} tooltip="Close Sidebar Chat" onClick={() => { FluxDispatcher.dispatch({