File tree Expand file tree Collapse file tree 4 files changed +18
-34
lines changed
invokeai/frontend/web/src
common/components/Loading
features/system/components Expand file tree Collapse file tree 4 files changed +18
-34
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ interface Props extends PropsWithChildren {
3939 customStarUi ?: CustomStarUi ;
4040 socketOptions ?: Partial < ManagerOptions & SocketOptions > ;
4141 isDebugging ?: boolean ;
42- useNewLogo ?: boolean ;
4342}
4443
4544const InvokeAIUI = ( {
@@ -54,7 +53,6 @@ const InvokeAIUI = ({
5453 customStarUi,
5554 socketOptions,
5655 isDebugging = false ,
57- useNewLogo = false ,
5856} : Props ) => {
5957 useEffect ( ( ) => {
6058 // configure API client token
@@ -157,7 +155,7 @@ const InvokeAIUI = ({
157155 return (
158156 < React . StrictMode >
159157 < Provider store = { store } >
160- < React . Suspense fallback = { < Loading useNewLogo = { ! ! useNewLogo } /> } >
158+ < React . Suspense fallback = { < Loading /> } >
161159 < ThemeLocaleProvider >
162160 < AppDndContext >
163161 < App config = { config } selectedImage = { selectedImage } />
Original file line number Diff line number Diff line change 11import { Flex , Image , Spinner } from '@chakra-ui/react' ;
2- import InvokeAILogoNew from 'assets/images/invoke-key-wht-lrg.svg' ;
3- import InvokeAILogoImage from 'assets/images/logo.png' ;
2+ import InvokeLogoWhite from 'assets/images/invoke-key-wht-lrg.svg' ;
43import { memo } from 'react' ;
54
65// This component loads before the theme so we cannot use theme tokens here
76
8- const Loading = ( { useNewLogo } : { useNewLogo : boolean } ) => {
7+ const Loading = ( ) => {
98 return (
109 < Flex
1110 position = "relative"
@@ -15,11 +14,7 @@ const Loading = ({ useNewLogo }: { useNewLogo: boolean }) => {
1514 justifyContent = "center"
1615 bg = "#151519"
1716 >
18- < Image
19- src = { useNewLogo ? InvokeAILogoNew : InvokeAILogoImage }
20- w = "8rem"
21- h = "8rem"
22- />
17+ < Image src = { InvokeLogoWhite } w = "8rem" h = "8rem" />
2318 < Spinner
2419 label = "Loading"
2520 color = "grey"
Original file line number Diff line number Diff line change 11/* eslint-disable i18next/no-literal-string */
22import { Flex , Image } from '@chakra-ui/react' ;
3- import InvokeAILogoImage from 'assets/images/logo.png ' ;
3+ import InvokeLogoYellow from 'assets/images/invoke-key-ylw-sm.svg ' ;
44import { InvText } from 'common/components/InvText/wrapper' ;
55import type { AnimationProps } from 'framer-motion' ;
66import { AnimatePresence , motion } from 'framer-motion' ;
77import { memo , useRef } from 'react' ;
88import { useHoverDirty } from 'react-use' ;
99import { useGetAppVersionQuery } from 'services/api/endpoints/appInfo' ;
1010
11- interface Props {
12- showVersion ?: boolean ;
13- }
14-
15- const InvokeAILogoComponent = ( { showVersion = true } : Props ) => {
11+ const InvokeAILogoComponent = ( ) => {
1612 const { data : appVersion } = useGetAppVersionQuery ( ) ;
1713 const ref = useRef ( null ) ;
1814 const isHovered = useHoverDirty ( ref ) ;
1915
2016 return (
2117 < Flex alignItems = "center" gap = { 5 } ps = { 1 } ref = { ref } >
2218 < Image
23- src = { InvokeAILogoImage }
24- alt = "invoke-ai- logo"
25- w = "32px "
26- h = "32px "
27- minW = "32px "
28- minH = "32px "
19+ src = { InvokeLogoYellow }
20+ alt = "invoke-logo"
21+ w = "24px "
22+ h = "24px "
23+ minW = "24px "
24+ minH = "24px "
2925 userSelect = "none"
3026 />
3127 < Flex gap = { 3 } alignItems = "center" >
32- < InvText fontSize = "xl" userSelect = "none" >
33- invoke < strong > ai</ strong >
34- </ InvText >
3528 < AnimatePresence >
36- { showVersion && isHovered && appVersion && (
29+ { isHovered && appVersion && (
3730 < motion . div
3831 key = "statusText"
3932 initial = { initial }
4033 animate = { animate }
4134 exit = { exit }
4235 >
43- < InvText
44- fontWeight = "semibold"
45- marginTop = { 1 }
46- color = "base.300"
47- fontSize = { 14 }
48- >
49- { appVersion . version }
36+ < InvText fontWeight = "semibold" marginTop = { 1 } color = "base.300" >
37+ v{ appVersion . version }
5038 </ InvText >
5139 </ motion . div >
5240 ) }
You can’t perform that action at this time.
0 commit comments