Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
feat(webv2): name rails in pickers, persistent app menu chevron
joshistoast3cff6de02dfa
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.jsonindex 2a7cb1090f..93a2486c9e 100644--- a/invokeai/frontend/webv2/public/locales/en.json+++ b/invokeai/frontend/webv2/public/locales/en.json@@ -1376,6 +1376,12 @@"settingsLabel": "{{label}} settings","visibilityLabel": "{{region}} widget visibility","groupLabel": "Widgets",+ "rail": {+ "create": "Create",+ "inspect": "Inspect",+ "createWidgets": "Create widgets",+ "inspectWidgets": "Inspect widgets"+ },"labels": {"autosaveStatus": "Autosave","canvas": "Canvas",diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsxindex f5665a92f4..f0034be433 100644--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx@@ -16,9 +16,9 @@ import {BookOpenTextIcon,BlocksIcon,BoxIcon,+ ChevronDownIcon,FolderIcon,ListOrderedIcon,- MenuIcon,MessagesSquareIcon,SearchIcon,SettingsIcon,@@ -128,39 +128,20 @@ export const AppMenu = () => {);};-const MARK_SWAP_PROPS = { opacity: 0 } as const;-const GLYPH_SWAP_PROPS = { opacity: 1 } as const;+const CHEVRON_HOVER_PROPS = { color: 'fg' } as const;const AppMenuGlyph = () => (- <Box boxSize="4" position="relative" role="presentation">- <Box- alignItems="center"- display="flex"- inset="0"- justifyContent="center"- position="absolute"- transition="opacity var(--wb-motion-duration-fast) ease"- _groupHover={MARK_SWAP_PROPS}- _groupFocusVisible={MARK_SWAP_PROPS}- _groupExpanded={MARK_SWAP_PROPS}- >- <InvokeMark size={14} />- </Box>- <Box- alignItems="center"- display="flex"- inset="0"- justifyContent="center"- opacity="0"- position="absolute"- transition="opacity var(--wb-motion-duration-fast) ease"- _groupHover={GLYPH_SWAP_PROPS}- _groupFocusVisible={GLYPH_SWAP_PROPS}- _groupExpanded={GLYPH_SWAP_PROPS}- >- <Icon as={MenuIcon} boxSize="4" />- </Box>- </Box>+ <HStack gap="0.5" role="presentation">+ <InvokeMark size={14} />+ <Icon+ as={ChevronDownIcon}+ boxSize="3"+ color="fg.subtle"+ transition="color var(--wb-motion-duration-fast) ease"+ _groupHover={CHEVRON_HOVER_PROPS}+ _groupExpanded={CHEVRON_HOVER_PROPS}+ />+ </HStack>);const SearchMenuAction = () => {diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsxindex 5354fddd81..ef8de30b15 100644--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx@@ -77,7 +77,9 @@ export const WidgetBar = ({return (<WidgetStripalign="center"- aria-label={t('widgets.visibilityLabel', { region: side === 'left' ? 'Left' : 'Right' })}+ aria-label={t('widgets.visibilityLabel', {+ region: side === 'left' ? t('widgets.rail.create') : t('widgets.rail.inspect'),+ })}as="nav"bg="bg.subtle"borderColor="border.subtle"@@ -107,11 +109,11 @@ export const WidgetBar = ({<WidgetEnableMenucontextTarget={enableMenuTarget}- groupLabel={t('widgets.groupLabel')}+ groupLabel={region === 'left' ? t('widgets.rail.createWidgets') : t('widgets.rail.inspectWidgets')}items={menuItems}positioning={positioning}trigger={trigger}- triggerLabel={t('widgets.visibilityLabel', { region: region === 'left' ? 'Left' : 'Right' })}+ triggerLabel={region === 'left' ? t('widgets.rail.createWidgets') : t('widgets.rail.inspectWidgets')}onContextClose={handleContextClose}onToggle={handleMenuToggle}/>