From 46d830b9faa901f5c95ad204b5059abca6462e98 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 3 Jan 2024 12:31:52 +1100 Subject: [PATCH] feat(ui): new logo! --- .../web/src/app/components/InvokeAIUI.tsx | 4 +-- .../src/assets/images/invoke-key-ylw-sm.svg | 3 ++ .../src/common/components/Loading/Loading.tsx | 11 ++---- .../components/InvokeAILogoComponent.tsx | 34 ++++++------------- 4 files changed, 18 insertions(+), 34 deletions(-) create mode 100644 invokeai/frontend/web/src/assets/images/invoke-key-ylw-sm.svg diff --git a/invokeai/frontend/web/src/app/components/InvokeAIUI.tsx b/invokeai/frontend/web/src/app/components/InvokeAIUI.tsx index 19eecef881..e1fa294654 100644 --- a/invokeai/frontend/web/src/app/components/InvokeAIUI.tsx +++ b/invokeai/frontend/web/src/app/components/InvokeAIUI.tsx @@ -39,7 +39,6 @@ interface Props extends PropsWithChildren { customStarUi?: CustomStarUi; socketOptions?: Partial; isDebugging?: boolean; - useNewLogo?: boolean; } const InvokeAIUI = ({ @@ -54,7 +53,6 @@ const InvokeAIUI = ({ customStarUi, socketOptions, isDebugging = false, - useNewLogo = false, }: Props) => { useEffect(() => { // configure API client token @@ -157,7 +155,7 @@ const InvokeAIUI = ({ return ( - }> + }> diff --git a/invokeai/frontend/web/src/assets/images/invoke-key-ylw-sm.svg b/invokeai/frontend/web/src/assets/images/invoke-key-ylw-sm.svg new file mode 100644 index 0000000000..898f20bd6f --- /dev/null +++ b/invokeai/frontend/web/src/assets/images/invoke-key-ylw-sm.svg @@ -0,0 +1,3 @@ + + + diff --git a/invokeai/frontend/web/src/common/components/Loading/Loading.tsx b/invokeai/frontend/web/src/common/components/Loading/Loading.tsx index a2d6e5680e..4c93d9ef01 100644 --- a/invokeai/frontend/web/src/common/components/Loading/Loading.tsx +++ b/invokeai/frontend/web/src/common/components/Loading/Loading.tsx @@ -1,11 +1,10 @@ import { Flex, Image, Spinner } from '@chakra-ui/react'; -import InvokeAILogoNew from 'assets/images/invoke-key-wht-lrg.svg'; -import InvokeAILogoImage from 'assets/images/logo.png'; +import InvokeLogoWhite from 'assets/images/invoke-key-wht-lrg.svg'; import { memo } from 'react'; // This component loads before the theme so we cannot use theme tokens here -const Loading = ({ useNewLogo }: { useNewLogo: boolean }) => { +const Loading = () => { return ( { justifyContent="center" bg="#151519" > - + { +const InvokeAILogoComponent = () => { const { data: appVersion } = useGetAppVersionQuery(); const ref = useRef(null); const isHovered = useHoverDirty(ref); @@ -20,33 +16,25 @@ const InvokeAILogoComponent = ({ showVersion = true }: Props) => { return ( invoke-ai-logo - - invoke ai - - {showVersion && isHovered && appVersion && ( + {isHovered && appVersion && ( - - {appVersion.version} + + v{appVersion.version} )}