Skip to content

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.

feat(shell): add Fonts to the manage menu

Josh Corbett674cdb6d9a74
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
index 83d7faf5f9..1d4651bc54 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
@@ -2,11 +2,11 @@ import { Badge, Box, chakra, HStack, Icon, Menu, Portal, Text } from '@chakra-ui
import { AccountMenuSection, useCapabilities, useHasAccountSection } from '@features/identity';
import { getQueueSummary } from '@features/queue/contracts';
import { APP_VERSION } from '@platform/runtime/appMetadata';
-import { DiscordIcon } from '@platform/ui/BrandIcon';
import { IconButton } from '@platform/ui/Button';
import { InvokeMark } from '@platform/ui/InvokeMark';
import { MenuContent } from '@platform/ui/Menu';
import { Tooltip } from '@platform/ui/Tooltip';
+import { DiscordIcon } from '@platform/ui/VendoredIcon';
import { useNavigate } from '@tanstack/react-router';
import { OPEN_COMMAND_PALETTE_HOTKEY } from '@workbench/hotkeys/catalog';
import { openCommandPalette } from '@workbench/palette/paletteStore';
@@ -22,6 +22,7 @@ import {
ListOrderedIcon,
SearchIcon,
SettingsIcon,
+ TypeIcon,
type LucideIcon,
} from 'lucide-react';
import { useCallback, type ElementType } from 'react';
@@ -51,6 +52,9 @@ export const AppMenu = () => {
const openNodes = useCallback(() => {
void navigate({ to: '/nodes' });
}, [navigate]);
+ const openFonts = useCallback(() => {
+ void navigate({ to: '/fonts' });
+ }, [navigate]);
const openQueue = useCallback(() => openWorkbenchWidget('queue'), [openWorkbenchWidget]);
const openSettings = useCallback(() => openWorkbenchSettings(), []);
@@ -93,6 +97,10 @@ export const AppMenu = () => {
<Menu.ItemText>{t('nodes.manager')}</Menu.ItemText>
</Menu.Item>
) : null}
+ <Menu.Item value="fonts" onClick={openFonts}>
+ <Icon as={TypeIcon} boxSize="3.5" />
+ <Menu.ItemText>{t('launchpad.sections.fonts')}</Menu.ItemText>
+ </Menu.Item>
<Menu.Item value="queue" onClick={openQueue}>
<Icon as={ListOrderedIcon} boxSize="3.5" />
<Menu.ItemText>{t('widgets.labels.queue')}</Menu.ItemText>