From a408f562d6f43939c2dd4117c8b09cdf6e0435e6 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Tue, 2 Jan 2024 09:42:54 -0500 Subject: [PATCH] option to use new brand for loader --- invokeai/frontend/web/src/app/components/InvokeAIUI.tsx | 4 +++- .../web/src/assets/images/invoke-key-wht-lrg.svg | 4 ++++ .../web/src/common/components/Loading/Loading.tsx | 9 +++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 invokeai/frontend/web/src/assets/images/invoke-key-wht-lrg.svg diff --git a/invokeai/frontend/web/src/app/components/InvokeAIUI.tsx b/invokeai/frontend/web/src/app/components/InvokeAIUI.tsx index e4ae4b61c6..94fb0dcae6 100644 --- a/invokeai/frontend/web/src/app/components/InvokeAIUI.tsx +++ b/invokeai/frontend/web/src/app/components/InvokeAIUI.tsx @@ -39,6 +39,7 @@ interface Props extends PropsWithChildren { customStarUi?: CustomStarUi; socketOptions?: Partial; isDebugging?: boolean; + useNewLogo?: boolean; } const InvokeAIUI = ({ @@ -53,6 +54,7 @@ const InvokeAIUI = ({ customStarUi, socketOptions, isDebugging = false, + useNewLogo = false, }: Props) => { useEffect(() => { // configure API client token @@ -146,7 +148,7 @@ const InvokeAIUI = ({ return ( - }> + }> diff --git a/invokeai/frontend/web/src/assets/images/invoke-key-wht-lrg.svg b/invokeai/frontend/web/src/assets/images/invoke-key-wht-lrg.svg new file mode 100644 index 0000000000..91f210c82b --- /dev/null +++ b/invokeai/frontend/web/src/assets/images/invoke-key-wht-lrg.svg @@ -0,0 +1,4 @@ + + + + diff --git a/invokeai/frontend/web/src/common/components/Loading/Loading.tsx b/invokeai/frontend/web/src/common/components/Loading/Loading.tsx index 591668f0c2..bbb605f92b 100644 --- a/invokeai/frontend/web/src/common/components/Loading/Loading.tsx +++ b/invokeai/frontend/web/src/common/components/Loading/Loading.tsx @@ -1,10 +1,11 @@ import { Flex, Image, Spinner } from '@chakra-ui/react'; import InvokeAILogoImage from 'assets/images/logo.png'; +import InvokeAILogoNew 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 = () => { +const Loading = ({ useNewLogo }: { useNewLogo: boolean }) => { return ( { justifyContent="center" bg="#151519" > - +