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(webv2): shell ui and icon tweaks

joshistoast12965e0cd761
diff --git a/invokeai/frontend/webv2/package.json b/invokeai/frontend/webv2/package.json
index b8e3bb80ed..8f1cfbb77b 100644
--- a/invokeai/frontend/webv2/package.json
+++ b/invokeai/frontend/webv2/package.json
@@ -25,7 +25,6 @@
"lucide-react": "^1.17.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
- "react-icons": "^5.5.0",
"socket.io-client": "^4.8.3"
},
"devDependencies": {
diff --git a/invokeai/frontend/webv2/pnpm-lock.yaml b/invokeai/frontend/webv2/pnpm-lock.yaml
index 106cc73c3f..7badd857a9 100644
--- a/invokeai/frontend/webv2/pnpm-lock.yaml
+++ b/invokeai/frontend/webv2/pnpm-lock.yaml
@@ -29,9 +29,6 @@ importers:
react-dom:
specifier: ^19.1.0
version: 19.2.7([email protected])
- react-icons:
- specifier: ^5.5.0
- version: 5.6.0([email protected])
socket.io-client:
specifier: ^4.8.3
version: 4.8.3
@@ -1323,11 +1320,6 @@ packages:
peerDependencies:
react: ^19.2.7
- resolution: {integrity: sha512-RH93p5ki6LfOiIt0UtDyNg/cee+HLVR6cHHtW3wALfo+eOHTp8RnU2kRkI6E+H19zMIs03DyxUG/GfZMOGvmiA==}
- peerDependencies:
- react: '*'
-
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
@@ -2983,10 +2975,6 @@ snapshots:
react: 19.2.7
scheduler: 0.27.0
- dependencies:
- react: 19.2.7
-
diff --git a/invokeai/frontend/webv2/src/workbench/components/CenterArea.tsx b/invokeai/frontend/webv2/src/workbench/components/CenterArea.tsx
index 47cd180854..4fa4c1c691 100644
--- a/invokeai/frontend/webv2/src/workbench/components/CenterArea.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/CenterArea.tsx
@@ -1,5 +1,5 @@
import { Box, Flex, HStack, Icon, Menu, Portal, Text } from '@chakra-ui/react';
-import { PiCheckBold, PiDotsThreeBold } from 'react-icons/pi';
+import { CheckIcon, MoreHorizontalIcon } from 'lucide-react';
import { WidgetIcon } from '../iconResolver';
import { useWorkbench } from '../WorkbenchContext';
@@ -114,7 +114,7 @@ const CenterWidgetMenu = ({
<Menu.Root positioning={{ placement: 'bottom-end' }}>
<Menu.Trigger asChild>
<IconButton aria-label="Center widget menu" size="xs" variant="ghost">
- <Icon as={PiDotsThreeBold} boxSize="4" />
+ <Icon as={MoreHorizontalIcon} boxSize="4" />
</IconButton>
</Menu.Trigger>
<Portal>
@@ -147,7 +147,7 @@ const CenterWidgetMenu = ({
_disabled={{ opacity: 0.4 }}
onClick={() => onToggle(item.id)}
>
- <Icon as={PiCheckBold} boxSize="3" opacity={item.isEnabled ? 1 : 0} />
+ <Icon as={CheckIcon} boxSize="3" opacity={item.isEnabled ? 1 : 0} />
<WidgetIcon iconId={item.widget.manifest.icon} boxSize="3.5" />
<Menu.ItemText>{item.label}</Menu.ItemText>
{isRequiredView ? (
diff --git a/invokeai/frontend/webv2/src/workbench/components/GraphSurfaceActions.tsx b/invokeai/frontend/webv2/src/workbench/components/GraphSurfaceActions.tsx
index ac7fac318c..5e847065f3 100644
--- a/invokeai/frontend/webv2/src/workbench/components/GraphSurfaceActions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/GraphSurfaceActions.tsx
@@ -1,6 +1,6 @@
import { Icon, Menu, Portal, Text } from '@chakra-ui/react';
import { useState } from 'react';
-import { PiDotsThreeBold, PiGraphBold, PiTargetBold } from 'react-icons/pi';
+import { GitBranchIcon, TargetIcon, MoreHorizontalIcon } from 'lucide-react';
import { useWorkbench } from '../WorkbenchContext';
import type { GraphBearingSurfaceContract, GraphContract, WidgetId } from '../types';
@@ -27,7 +27,7 @@ export const GraphSurfaceActions = ({ surface }: GraphSurfaceActionsProps) => {
<Menu.Root positioning={{ placement: 'bottom-end' }}>
<Menu.Trigger asChild>
<IconButton aria-label={`${surface.label} graph actions`} color="fg.muted" size="2xs" variant="ghost">
- <PiDotsThreeBold />
+ <MoreHorizontalIcon />
</IconButton>
</Menu.Trigger>
<Portal>
@@ -51,7 +51,7 @@ export const GraphSurfaceActions = ({ surface }: GraphSurfaceActionsProps) => {
_disabled={{ opacity: 0.4 }}
onClick={() => dispatch({ sourceId: surface.sourceId, type: 'setInvocationSource' })}
>
- <Icon as={PiTargetBold} boxSize="3.5" />
+ <Icon as={TargetIcon} boxSize="3.5" />
<Menu.ItemText>Set Source</Menu.ItemText>
{isActiveSource ? (
<Text color="fg.subtle" fontSize="2xs" ms="auto">
@@ -64,7 +64,7 @@ export const GraphSurfaceActions = ({ surface }: GraphSurfaceActionsProps) => {
disabled={!surface.canPreviewGraph}
onClick={() => setIsPreviewOpen(true)}
>
- <Icon as={PiGraphBold} boxSize="3.5" />
+ <Icon as={GitBranchIcon} boxSize="3.5" />
<Menu.ItemText>View Graph</Menu.ItemText>
</Menu.Item>
</Menu.ItemGroup>
diff --git a/invokeai/frontend/webv2/src/workbench/components/ImageContextMenu.tsx b/invokeai/frontend/webv2/src/workbench/components/ImageContextMenu.tsx
index 7c28d7e05a..641c68885b 100644
--- a/invokeai/frontend/webv2/src/workbench/components/ImageContextMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/ImageContextMenu.tsx
@@ -1,27 +1,27 @@
import { Dialog, HStack, Icon, Menu, Portal, ScrollArea, Text } from '@chakra-ui/react';
-import { useRef, useState, type ComponentType, type ReactNode } from 'react';
+import { useRef, useState, type ReactNode } from 'react';
import {
- PiArrowSquareOutBold,
- PiArrowsCounterClockwiseBold,
- PiAsteriskBold,
- PiCaretRightBold,
- PiCopyBold,
- PiDownloadSimpleBold,
- PiEyeBold,
- PiFileImageBold,
- PiFlowArrowBold,
- PiFoldersBold,
- PiFrameCornersBold,
- PiImageSquareBold,
- PiImagesBold,
- PiPlantBold,
- PiQuotesBold,
- PiStackBold,
- PiStarBold,
- PiStarFill,
- PiTextAaBold,
- PiTrashSimpleBold,
-} from 'react-icons/pi';
+ AsteriskIcon,
+ ChevronRightIcon,
+ CopyIcon,
+ DownloadIcon,
+ ExternalLinkIcon,
+ EyeIcon,
+ FileImageIcon,
+ FolderIcon,
+ ImageIcon,
+ ImagesIcon,
+ LayersIcon,
+ QuoteIcon,
+ ScanIcon,
+ ShuffleIcon,
+ SproutIcon,
+ StarIcon,
+ Trash2Icon,
+ TypeIcon,
+ WorkflowIcon,
+ type LucideIcon,
+} from 'lucide-react';
import type { GalleryBoard, GalleryImage } from '../gallery/api';
import { Button } from './ui/Button';
@@ -203,58 +203,58 @@ const SingleImageMenuItems = ({
<>
<HStack gap="1" px="1">
<QuickMenuItem
- icon={PiArrowSquareOutBold}
+ icon={ExternalLinkIcon}
label="Open in new tab"
value="open-in-new-tab"
onClick={() => window.open(image.imageUrl, '_blank', 'noopener')}
/>
<QuickMenuItem
- icon={PiCopyBold}
+ icon={CopyIcon}
label="Copy to clipboard"
value="copy-to-clipboard"
onClick={() => void actions.copyImage(image)}
/>
<QuickMenuItem
- icon={PiDownloadSimpleBold}
+ icon={DownloadIcon}
label="Download image"
value="download-image"
onClick={() => void actions.downloadImage(image)}
/>
<QuickMenuItem
- icon={PiEyeBold}
+ icon={EyeIcon}
label="Open in preview"
value="open-in-preview"
onClick={() => actions.openImageInPreview(image)}
/>
<QuickMenuItem
- icon={image.starred ? PiStarFill : PiStarBold}
+ icon={StarIcon}
label={image.starred ? 'Unstar image' : 'Star image'}
value="toggle-starred"
onClick={() => void actions.setImagesStarred([image.imageName], !image.starred)}
/>
</HStack>
<Menu.Separator borderColor="border.subtle" />
- <ContextMenuItem disabled icon={PiFlowArrowBold} label="Load Workflow" value="load-workflow" />
- <ContextSubMenu icon={PiAsteriskBold} label="Recall Metadata">
- <ContextMenuItem disabled icon={PiAsteriskBold} label="Recall All" value="recall-all" />
- <ContextMenuItem disabled icon={PiArrowsCounterClockwiseBold} label="Remix Image" value="remix" />
- <ContextMenuItem disabled icon={PiQuotesBold} label="Use Prompt" value="use-prompt" />
- <ContextMenuItem disabled icon={PiPlantBold} label="Use Seed" value="use-seed" />
+ <ContextMenuItem disabled icon={WorkflowIcon} label="Load Workflow" value="load-workflow" />
+ <ContextSubMenu icon={AsteriskIcon} label="Recall Metadata">
+ <ContextMenuItem disabled icon={AsteriskIcon} label="Recall All" value="recall-all" />
+ <ContextMenuItem disabled icon={ShuffleIcon} label="Remix Image" value="remix" />
+ <ContextMenuItem disabled icon={QuoteIcon} label="Use Prompt" value="use-prompt" />
+ <ContextMenuItem disabled icon={SproutIcon} label="Use Seed" value="use-seed" />
</ContextSubMenu>
<Menu.Separator borderColor="border.subtle" />
- <ContextMenuItem disabled icon={PiFrameCornersBold} label="Send to Upscale" value="send-to-upscale" />
- <ContextMenuItem disabled icon={PiImageSquareBold} label="Use as Reference Image" value="use-as-reference-image" />
- <ContextMenuItem disabled icon={PiTextAaBold} label="Use as Prompt Template" value="use-as-prompt-template" />
+ <ContextMenuItem disabled icon={ScanIcon} label="Send to Upscale" value="send-to-upscale" />
+ <ContextMenuItem disabled icon={ImageIcon} label="Use as Reference Image" value="use-as-reference-image" />
+ <ContextMenuItem disabled icon={TypeIcon} label="Use as Prompt Template" value="use-as-prompt-template" />
<ContextMenuItem
- icon={PiImagesBold}
+ icon={ImagesIcon}
label="Select for Compare"
value="select-for-compare"
onClick={() => actions.selectForCompare(image)}
/>
<Menu.Separator borderColor="border.subtle" />
- <ContextSubMenu icon={PiFileImageBold} label="New from Image">
- <ContextMenuItem disabled icon={PiFileImageBold} label="New Canvas from Image" value="new-canvas-from-image" />
- <ContextMenuItem disabled icon={PiStackBold} label="New Layer from Image" value="new-layer-from-image" />
+ <ContextSubMenu icon={FileImageIcon} label="New from Image">
+ <ContextMenuItem disabled icon={FileImageIcon} label="New Canvas from Image" value="new-canvas-from-image" />
+ <ContextMenuItem disabled icon={LayersIcon} label="New Layer from Image" value="new-layer-from-image" />
</ContextSubMenu>
<ChangeBoardSubMenu
boards={boards}
@@ -264,7 +264,7 @@ const SingleImageMenuItems = ({
<Menu.Separator borderColor="border.subtle" />
<ContextMenuItem
color="fg.error"
- icon={PiTrashSimpleBold}
+ icon={Trash2Icon}
label="Delete Image"
value="delete-image"
onClick={() => onRequestDeletion([image.imageName])}
@@ -294,13 +294,13 @@ const BulkMenuItems = ({
</Text>
<Menu.Separator borderColor="border.subtle" />
<ContextMenuItem
- icon={allStarred ? PiStarFill : PiStarBold}
+ icon={StarIcon}
label={allStarred ? 'Unstar All' : 'Star All'}
value="toggle-starred-all"
onClick={() => void actions.setImagesStarred(imageNames, !allStarred)}
/>
<ContextMenuItem
- icon={PiDownloadSimpleBold}
+ icon={DownloadIcon}
label="Download Selection"
value="download-selection"
onClick={() => void actions.downloadImages(imageNames)}
@@ -313,7 +313,7 @@ const BulkMenuItems = ({
<Menu.Separator borderColor="border.subtle" />
<ContextMenuItem
color="fg.error"
- icon={PiTrashSimpleBold}
+ icon={Trash2Icon}
label="Delete Selection"
value="delete-selection"
onClick={() => onRequestDeletion(imageNames)}
@@ -331,10 +331,10 @@ const ChangeBoardSubMenu = ({
currentBoardId: string | null;
onMove: (boardId: string) => void;
}) => (
- <ContextSubMenu icon={PiFoldersBold} label="Change Board" scrollArea>
+ <ContextSubMenu icon={FolderIcon} label="Change Board" scrollArea>
{currentBoardId !== 'none' && (
<ContextMenuItem
- icon={PiFoldersBold}
+ icon={FolderIcon}
label="Remove from Board"
value="remove-from-board"
onClick={() => onMove('none')}
@@ -359,7 +359,7 @@ const ContextSubMenu = ({
scrollArea,
}: {
children: ReactNode;
- icon: ComponentType;
+ icon: LucideIcon;
label: string;
scrollArea?: boolean;
}) => (
@@ -370,7 +370,7 @@ const ContextSubMenu = ({
<Text flex="1" fontSize="xs">
{label}
</Text>
- <Icon as={PiCaretRightBold} boxSize="3" color="fg.subtle" flexShrink={0} />
+ <Icon as={ChevronRightIcon} boxSize="3" color="fg.subtle" flexShrink={0} />
</HStack>
</Menu.TriggerItem>
<Portal>
@@ -400,7 +400,7 @@ const QuickMenuItem = ({
value,
onClick,
}: {
- icon: ComponentType;
+ icon: LucideIcon;
label: string;
value: string;
onClick: () => void;
@@ -428,7 +428,7 @@ const ContextMenuItem = ({
}: {
color?: string;
disabled?: boolean;
- icon: ComponentType;
+ icon: LucideIcon;
label: string;
value: string;
onClick?: () => void;
diff --git a/invokeai/frontend/webv2/src/workbench/components/InvokeControl.tsx b/invokeai/frontend/webv2/src/workbench/components/InvokeControl.tsx
index 7e210d6acc..8a6f9430c0 100644
--- a/invokeai/frontend/webv2/src/workbench/components/InvokeControl.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/InvokeControl.tsx
@@ -1,6 +1,6 @@
import { Flex, Group, HStack, Icon, Menu, Portal, Text, VStack } from '@chakra-ui/react';
import { useEffect, useRef } from 'react';
-import { PiCaretDownBold, PiCheckBold, PiLockSimpleFill, PiSparkleFill } from 'react-icons/pi';
+import { CheckIcon, ChevronDownIcon, LockKeyholeIcon, SparklesIcon } from 'lucide-react';
import { useWorkbench } from '../WorkbenchContext';
import {
@@ -32,7 +32,6 @@ export const InvokeControl = () => {
const isLocked = invocation.sourceLocked || invocation.destinationLocked;
const isValid = isInvocationRouteValid(resolvedRoute);
const routeLabel = formatRoute(resolvedRoute);
- const invokeLabel = isValid ? `Invoke — ${routeLabel}` : `Invoke unavailable — ${resolvedRoute.validationMessage}`;
const resolvedRouteRef = useRef(resolvedRoute);
const isValidRef = useRef(isValid);
@@ -82,7 +81,7 @@ export const InvokeControl = () => {
<Menu.Root positioning={{ placement: 'bottom-start' }}>
<Group attached>
<Button size="sm" onClick={onInvoke} w={CONTROL_WIDTH} minW="0" justifyContent="start">
- <Icon as={PiSparkleFill} boxSize="4" flexShrink={0} />
+ <Icon as={SparklesIcon} boxSize="4" flexShrink={0} />
<VStack align="start" gap="0" minW="0">
<Text fontSize="sm" fontWeight="700" lineHeight="1">
Invoke
@@ -91,13 +90,13 @@ export const InvokeControl = () => {
<Text fontSize="2xs" fontWeight="600" lineHeight="1.1" opacity="0.85" truncate>
{routeLabel}
</Text>
- {isLocked ? <Icon as={PiLockSimpleFill} boxSize="2.5" flexShrink={0} /> : null}
+ {isLocked ? <Icon as={LockKeyholeIcon} boxSize="2.5" flexShrink={0} /> : null}
</HStack>
</VStack>
</Button>
<Menu.Trigger asChild>
<IconButton size="sm" minW="0" w="7">
- <PiCaretDownBold />
+ <ChevronDownIcon />
</IconButton>
</Menu.Trigger>
</Group>
@@ -135,7 +134,7 @@ export const InvokeControl = () => {
</Text>
)}
<Menu.ItemIndicator>
- <Icon as={PiCheckBold} boxSize="3" />
+ <Icon as={CheckIcon} boxSize="3" />
</Menu.ItemIndicator>
</Menu.RadioItem>
))}
@@ -156,7 +155,7 @@ export const InvokeControl = () => {
<Menu.RadioItem key={destination.id} value={destination.id}>
<Menu.ItemText>{destination.label}</Menu.ItemText>
<Menu.ItemIndicator>
- <Icon as={PiCheckBold} boxSize="3" />
+ <Icon as={CheckIcon} boxSize="3" />
</Menu.ItemIndicator>
</Menu.RadioItem>
))}
@@ -169,7 +168,7 @@ export const InvokeControl = () => {
closeOnSelect={false}
onClick={() => dispatch({ type: 'toggleSourceLock' })}
>
- <Icon as={PiLockSimpleFill} boxSize="3" opacity={invocation.sourceLocked ? 1 : 0.35} />
+ <Icon as={LockKeyholeIcon} boxSize="3" opacity={invocation.sourceLocked ? 1 : 0.35} />
<Menu.ItemText>{invocation.sourceLocked ? 'Unlock source' : 'Lock source'}</Menu.ItemText>
</Menu.Item>
<Menu.Item
@@ -177,7 +176,7 @@ export const InvokeControl = () => {
closeOnSelect={false}
onClick={() => dispatch({ type: 'toggleDestinationLock' })}
>
- <Icon as={PiLockSimpleFill} boxSize="3" opacity={invocation.destinationLocked ? 1 : 0.35} />
+ <Icon as={LockKeyholeIcon} boxSize="3" opacity={invocation.destinationLocked ? 1 : 0.35} />
<Menu.ItemText>
{invocation.destinationLocked ? 'Unlock destination' : 'Lock destination'}
</Menu.ItemText>
@@ -187,45 +186,5 @@ export const InvokeControl = () => {
</Portal>
</Menu.Root>
</Flex>
- // <HStack
- // aria-disabled={!isValid}
- // aria-label={invokeLabel}
- // as="button"
- // bg={isValid ? 'accent.invoke' : 'bg.surface'}
- // color={isValid ? 'accent.invokeFg' : 'fg.muted'}
- // flex="1"
- // gap="2"
- // h="full"
- // minW="0"
- // px="3"
- // transition="filter 0.12s ease"
- // title={resolvedRoute.validationMessage}
- // onClick={() => {
- // if (!isValid) {
- // return;
- // }
-
- // dispatch({
- // backendSupportsCancellation: true,
- // route: resolvedRoute,
- // type: 'submitResolvedInvocationSnapshot',
- // });
- // }}
- // _hover={isValid ? { filter: 'brightness(1.05)' } : undefined}
- // _active={{ filter: 'brightness(0.96)' }}
- // >
- // <Icon as={PiSparkleFill} boxSize="4" flexShrink={0} />
- // <VStack align="start" gap="0" minW="0">
- // <Text fontSize="sm" fontWeight="700" lineHeight="1">
- // Invoke
- // </Text>
- // <HStack gap="1" maxW="full">
- // <Text fontSize="2xs" fontWeight="600" lineHeight="1.1" opacity="0.85" truncate>
- // {routeLabel}
- // </Text>
- // {isLocked ? <Icon as={PiLockSimpleFill} boxSize="2.5" flexShrink={0} /> : null}
- // </HStack>
- // </VStack>
- // </HStack>
);
};
diff --git a/invokeai/frontend/webv2/src/workbench/components/LayoutPresetMenu.tsx b/invokeai/frontend/webv2/src/workbench/components/LayoutPresetMenu.tsx
index 0a001ea849..d4a1126ee2 100644
--- a/invokeai/frontend/webv2/src/workbench/components/LayoutPresetMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/LayoutPresetMenu.tsx
@@ -1,5 +1,5 @@
import { Icon, Menu, Portal, Stack, Text } from '@chakra-ui/react';
-import { PiCaretDownBold, PiCheckBold } from 'react-icons/pi';
+import { CheckIcon, ChevronDownIcon } from 'lucide-react';
import { useWorkbench } from '../WorkbenchContext';
import { getLayoutPreset, layoutPresets } from '../layoutPresets';
@@ -35,7 +35,7 @@ export const LayoutPresetMenu = () => {
_hover={{ bg: 'bg.surfaceRaised' }}
>
{activePreset.label}
- <Icon as={PiCaretDownBold} boxSize="3" />
+ <Icon as={ChevronDownIcon} boxSize="3" />
</Button>
</Menu.Trigger>
<Portal>
@@ -67,7 +67,7 @@ export const LayoutPresetMenu = () => {
{preset.description}
</Text>
</Stack>
- {preset.id === activePreset.id ? <Icon as={PiCheckBold} boxSize="3" color="accent.active" /> : null}
+ {preset.id === activePreset.id ? <Icon as={CheckIcon} boxSize="3" color="accent.active" /> : null}
</Menu.Item>
))}
</Menu.ItemGroup>
diff --git a/invokeai/frontend/webv2/src/workbench/components/ProjectTabs.tsx b/invokeai/frontend/webv2/src/workbench/components/ProjectTabs.tsx
index fb2f6cf185..bd3d03c1b1 100644
--- a/invokeai/frontend/webv2/src/workbench/components/ProjectTabs.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/ProjectTabs.tsx
@@ -1,6 +1,6 @@
import { CloseButton, IconButton } from './ui/Button';
import { Tabs } from './ui/Tabs';
-import { PiPlusBold } from 'react-icons/pi';
+import { PlusIcon } from 'lucide-react';
import { Tooltip } from './ui/Tooltip';
import { useWorkbench } from '../WorkbenchContext';
@@ -60,7 +60,7 @@ export const ProjectTabs = () => {
ms="2"
onClick={() => dispatch({ type: 'createProject' })}
>
- <PiPlusBold />
+ <PlusIcon />
</IconButton>
</Tooltip>
</Tabs.List>
diff --git a/invokeai/frontend/webv2/src/workbench/components/SettingsDialog.tsx b/invokeai/frontend/webv2/src/workbench/components/SettingsDialog.tsx
index bf534235b1..3bef3b22f2 100644
--- a/invokeai/frontend/webv2/src/workbench/components/SettingsDialog.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/SettingsDialog.tsx
@@ -13,7 +13,7 @@ import {
useSlotRecipe,
} from '@chakra-ui/react';
import type { ReactNode } from 'react';
-import { PiArrowCounterClockwiseBold, PiCheckBold, PiGearSixBold, PiTrashBold } from 'react-icons/pi';
+import { CheckIcon, RotateCcwIcon, SettingsIcon, Trash2Icon } from 'lucide-react';
import { themeCardRecipe } from '../../theme/recipes';
import { THEMES, type ThemeDefinition } from '../../theme/system';
@@ -31,7 +31,7 @@ export const SettingsButton = () => (
<Dialog.Root placement="center" scrollBehavior="inside" size="lg">
<Dialog.Trigger asChild>
<IconButton aria-label="Settings" color="fg.muted" size="sm" variant="ghost" _hover={{ color: 'fg.default' }}>
- <PiGearSixBold />
+ <SettingsIcon />
</IconButton>
</Dialog.Trigger>
<SettingsDialogContent />
@@ -145,7 +145,7 @@ const ThemeCard = ({
<HStack justify="space-between" w="full">
<Text css={styles.name}>{theme.label}</Text>
<Box css={styles.indicator}>
- <Icon as={PiCheckBold} boxSize="3" />
+ <Icon as={CheckIcon} boxSize="3" />
</Box>
</HStack>
<Text css={styles.description}>{theme.description}</Text>
@@ -217,7 +217,7 @@ const WorkspaceSection = () => {
<SettingsSection description="Reset the layout or clear locally saved projects and preferences." title="Workspace">
<HStack gap="2" wrap="wrap">
<Button size="sm" variant="outline" onClick={() => dispatch({ type: 'resetActiveLayout' })}>
- <PiArrowCounterClockwiseBold />
+ <RotateCcwIcon />
Reset layout
</Button>
<Button
@@ -228,7 +228,7 @@ const WorkspaceSection = () => {
_hover={{ bg: 'fg.error', color: 'bg.surface' }}
onClick={clearSavedData}
>
- <PiTrashBold />
+ <Trash2Icon />
Clear saved data
</Button>
</HStack>
diff --git a/invokeai/frontend/webv2/src/workbench/components/StatusBar.tsx b/invokeai/frontend/webv2/src/workbench/components/StatusBar.tsx
index 10b35071a2..9865df0ef2 100644
--- a/invokeai/frontend/webv2/src/workbench/components/StatusBar.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/StatusBar.tsx
@@ -1,5 +1,5 @@
import { Box, Flex, Icon, Menu, Portal, Text } from '@chakra-ui/react';
-import { PiCheckBold, PiDotsThreeBold } from 'react-icons/pi';
+import { CheckIcon, MoreHorizontalIcon } from 'lucide-react';
import { WidgetIcon } from '../iconResolver';
import type { RegisteredWidget, WidgetId } from '../types';
@@ -159,7 +159,7 @@ const BottomWidgetMenu = ({
w="5"
_hover={{ bg: 'bg.surfaceRaised' }}
>
- <Icon as={PiDotsThreeBold} boxSize="4" />
+ <Icon as={MoreHorizontalIcon} boxSize="4" />
</Flex>
</Menu.Trigger>
<Portal>
@@ -189,7 +189,7 @@ const BottomWidgetMenu = ({
_disabled={{ opacity: 0.4 }}
onClick={() => onToggle(item.id)}
>
- <Icon as={PiCheckBold} boxSize="3" opacity={item.isEnabled ? 1 : 0} />
+ <Icon as={CheckIcon} boxSize="3" opacity={item.isEnabled ? 1 : 0} />
<WidgetIcon iconId={item.widget.manifest.icon} boxSize="3.5" />
<Menu.ItemText>{item.label}</Menu.ItemText>
{item.failureMessage ? (
diff --git a/invokeai/frontend/webv2/src/workbench/components/TopBar.tsx b/invokeai/frontend/webv2/src/workbench/components/TopBar.tsx
index 0874c4e5f1..a6a86d52cb 100644
--- a/invokeai/frontend/webv2/src/workbench/components/TopBar.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/TopBar.tsx
@@ -1,13 +1,5 @@
import { Badge, Box, Flex, Group, HStack, Icon, Menu, NumberInput, Portal, Text } from '@chakra-ui/react';
-import {
- PiCaretDownBold,
- PiCubeBold,
- PiListNumbersBold,
- PiPause,
- PiPlay,
- PiUserCircleBold,
- PiXBold,
-} from 'react-icons/pi';
+import { BoxIcon, ChevronDownIcon, CircleUserIcon, ListOrderedIcon, PauseIcon, PlayIcon, XIcon } from 'lucide-react';
import { InvokeControl } from './InvokeControl';
import { LayoutPresetMenu } from './LayoutPresetMenu';
@@ -35,7 +27,8 @@ export const TopBar = () => (
<BrandMark />
<InvokeControl />
<BatchCountField />
- <QueueCluster />
+ <QueueInfo />
+ <QueueActions />
<Box w="1px" h="5" bg="border.subtle" mx="1" flexShrink={0} />
<ProjectTabs />
<LayoutPresetMenu />
@@ -47,12 +40,12 @@ export const TopBar = () => (
variant="ghost"
_hover={{ color: 'fg.default' }}
>
- <PiCubeBold />
+ <BoxIcon />
</IconButton>
<SettingsButton />
</HStack>
<HStack as="button" gap="1.5" color="fg.default" flexShrink={0} px="1">
- <Icon as={PiUserCircleBold} boxSize="4" />
+ <Icon as={CircleUserIcon} boxSize="4" />
<Text fontSize="xs" fontWeight="600">
Josh
</Text>
@@ -119,33 +112,42 @@ const BatchCountField = () => {
);
};
-/**
- * Queue status + cancel cluster placeholder.
- *
- * Mirrors the spec's queue progress / cancel affordance. Real queue wiring,
- * snapshotting, and cancellation arrive with the Invocation Controller phases.
- */
-const QueueCluster = () => {
+const QueueInfo = () => {
const { activeProject } = useWorkbench();
const activeCount = activeProject.queue.items.filter(
(item) => item.status === 'pending' || item.status === 'running'
).length;
const totalCount = activeProject.queue.items.length;
+ return (
+ <Badge variant="outline" h="9" borderColor="border.subtle" fontSize="xs" fontWeight="700" gap="1" px="2">
+ <ListOrderedIcon size="14" />
+ {activeCount}/{totalCount}
+ </Badge>
+ );
+};
+
+/**
+ * Queue status + cancel cluster placeholder.
+ *
+ * Mirrors the spec's queue progress / cancel affordance. Real queue wiring,
+ * snapshotting, and cancellation arrive with the Invocation Controller phases.
+ */
+const QueueActions = () => {
const queueEndActions = [
{
label: 'Cancel Current Item',
- icon: PiXBold,
+ icon: XIcon,
onClick: () => void 0,
},
{
label: 'Cancel All Items',
- icon: PiXBold,
+ icon: XIcon,
onClick: () => void 0,
},
{
label: 'Cancel all except current item',
- icon: PiXBold,
+ icon: XIcon,
onClick: () => void 0,
},
];
@@ -153,79 +155,72 @@ const QueueCluster = () => {
const queueProcessorActions = [
{
label: 'Resume Processor',
- icon: PiPlay,
+ icon: PlayIcon,
onClick: () => void 0,
},
{
label: 'Pause Processor',
- icon: PiPause,
+ icon: PauseIcon,
onClick: () => void 0,
},
{
label: 'Open Queue',
- icon: PiListNumbersBold,
+ icon: ListOrderedIcon,
onClick: () => void 0,
},
];
return (
- <HStack flexShrink={0} gap="1">
- <Badge variant="outline" h="9" borderColor="border.subtle" fontSize="xs" fontWeight="700" gap="1" px="2">
- {/*<Icon as={PiListNumbersBold} boxSize="3" />*/}
- <PiListNumbersBold />
- {activeCount}/{totalCount}
- </Badge>
- <Menu.Root>
- <Group attached>
- <Tooltip content="Cancel current item" showArrow>
- <IconButton variant="outline" size="sm" roundedEnd="none">
- <PiXBold />
- </IconButton>
- </Tooltip>
- <Menu.Trigger>
- <IconButton
- variant="outline"
- size="sm"
- roundedStart="none"
- borderStartWidth="0"
- aspectRatio="unset"
- minW="0"
- w="6"
- >
- <PiCaretDownBold />
- </IconButton>
- </Menu.Trigger>
- </Group>
- <Portal>
- <Menu.Positioner>
- <Menu.Content>
- <Menu.ItemGroup>
- {queueEndActions.map((action, index) => (
- <Menu.Item
- key={index}
- onClick={action.onClick}
- value={action.label}
- color="fg.error"
- _hover={{ bg: 'bg.error', color: 'fg.error' }}
- >
- <Icon as={action.icon} boxSize="3" />
- <span>{action.label}</span>
- </Menu.Item>
- ))}
- </Menu.ItemGroup>
- <Menu.Separator />
- <Menu.ItemGroup>
- {queueProcessorActions.map((action, index) => (
- <Menu.Item key={index} onClick={action.onClick} value={action.label}>
- <Icon as={action.icon} boxSize="3" />
- <span>{action.label}</span>
- </Menu.Item>
- ))}
- </Menu.ItemGroup>
- </Menu.Content>
- </Menu.Positioner>
- </Portal>
- </Menu.Root>
- </HStack>
+ <Menu.Root>
+ <Group attached>
+ <Tooltip content="Cancel current item" showArrow>
+ <IconButton variant="outline" size="sm" roundedEnd="none">
+ <XIcon />
+ </IconButton>
+ </Tooltip>
+ <Menu.Trigger>
+ <IconButton
+ variant="outline"
+ size="sm"
+ roundedStart="none"
+ borderStartWidth="0"
+ aspectRatio="unset"
+ minW="0"
+ w="6"
+ >
+ <ChevronDownIcon />
+ </IconButton>
+ </Menu.Trigger>
+ </Group>
+ <Portal>
+ <Menu.Positioner>
+ <Menu.Content>
+ <Menu.ItemGroup>
+ {queueEndActions.map((action, index) => (
+ <Menu.Item
+ key={index}
+ onClick={action.onClick}
+ value={action.label}
+ color="fg.error"
+ _hover={{ bg: 'bg.error', color: 'fg.error' }}
+ >
+ <Icon as={action.icon} boxSize="3" />
+ <span>{action.label}</span>
+ </Menu.Item>
+ ))}
+ </Menu.ItemGroup>
+ <Menu.Separator />
+ <Menu.ItemGroup>
+ {queueProcessorActions.map((action, index) => (
+ <Menu.Item key={index} onClick={action.onClick} value={action.label}>
+ <Icon as={action.icon} boxSize="3" />
+ <span>{action.label}</span>
+ </Menu.Item>
+ ))}
+ </Menu.ItemGroup>
+ </Menu.Content>
+ </Menu.Positioner>
+ </Portal>
+ </Menu.Root>
);
};
diff --git a/invokeai/frontend/webv2/src/workbench/components/WidgetBar.tsx b/invokeai/frontend/webv2/src/workbench/components/WidgetBar.tsx
index e504de2210..794effd878 100644
--- a/invokeai/frontend/webv2/src/workbench/components/WidgetBar.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/WidgetBar.tsx
@@ -1,5 +1,5 @@
import { Flex, Icon, Menu, Portal, Text } from '@chakra-ui/react';
-import { PiCheckBold, PiDotsThreeBold } from 'react-icons/pi';
+import { CheckIcon, MoreHorizontalIcon } from 'lucide-react';
import { WidgetIcon } from '../iconResolver';
import type { RegisteredWidget, WidgetIconId, WidgetId, WidgetRegion } from '../types';
@@ -126,7 +126,7 @@ const WidgetMenuButton = ({
w="9"
_hover={{ bg: 'bg.surfaceRaised' }}
>
- <Icon as={PiDotsThreeBold} boxSize="5" />
+ <Icon as={MoreHorizontalIcon} boxSize="5" />
</Flex>
</Menu.Trigger>
<Portal>
@@ -155,7 +155,7 @@ const WidgetMenuButton = ({
_disabled={{ opacity: 0.4 }}
onClick={() => onToggle(item.id)}
>
- <Icon as={PiCheckBold} boxSize="3" opacity={item.isEnabled ? 1 : 0} />
+ <Icon as={CheckIcon} boxSize="3" opacity={item.isEnabled ? 1 : 0} />
<Menu.ItemText>{item.label}</Menu.ItemText>
{item.failureMessage ? (
<Text color="fg.subtle" fontSize="2xs" ms="auto">
diff --git a/invokeai/frontend/webv2/src/workbench/components/WidgetFrames.tsx b/invokeai/frontend/webv2/src/workbench/components/WidgetFrames.tsx
index 113eb79571..710f6da2db 100644
--- a/invokeai/frontend/webv2/src/workbench/components/WidgetFrames.tsx
+++ b/invokeai/frontend/webv2/src/workbench/components/WidgetFrames.tsx
@@ -5,7 +5,7 @@ import {
type PointerEvent as ReactPointerEvent,
type ReactNode,
} from 'react';
-import type { IconType } from 'react-icons';
+import type { LucideIcon } from 'lucide-react';
import { createGraphBearingSurface } from '../graphSurfaces';
import { useFocusRegionProps } from '../focusRegions';
@@ -191,7 +191,7 @@ export const StatusWidgetChip = ({
borderColor?: string;
children: ReactNode;
color?: string;
- icon: IconType;
+ icon: LucideIcon;
}) => (
<HStack
borderWidth="1px"
diff --git a/invokeai/frontend/webv2/src/workbench/iconResolver.tsx b/invokeai/frontend/webv2/src/workbench/iconResolver.tsx
index f4e91aa91f..6f8f2566ae 100644
--- a/invokeai/frontend/webv2/src/workbench/iconResolver.tsx
+++ b/invokeai/frontend/webv2/src/workbench/iconResolver.tsx
@@ -1,5 +1,5 @@
import { Icon, type IconProps } from '@chakra-ui/react';
-import { Square } from 'lucide-react';
+import { SquareIcon } from 'lucide-react';
import { lazy, Suspense, type ComponentType } from 'react';
import type { WidgetIconId } from './types';
@@ -39,7 +39,7 @@ const resolveLazyIcon = (iconId: WidgetIconId): ComponentType => {
return cachedIcon;
}
- const LazyIcon = lazy(getIconImporter(iconId) ?? (() => Promise.resolve({ default: Square })));
+ const LazyIcon = lazy(getIconImporter(iconId) ?? (() => Promise.resolve({ default: SquareIcon })));
iconCache.set(iconId, LazyIcon);
@@ -50,7 +50,7 @@ export const WidgetIcon = ({ iconId, ...props }: IconProps & { iconId: WidgetIco
const ResolvedIcon = resolveLazyIcon(iconId);
return (
- <Suspense fallback={<Icon as={Square} {...props} />}>
+ <Suspense fallback={<Icon as={SquareIcon} {...props} />}>
<Icon as={ResolvedIcon} {...props} />
</Suspense>
);
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/autosave-status/AutosaveStatusWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/autosave-status/AutosaveStatusWidgetView.tsx
index 46105af39f..b0fe07c087 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/autosave-status/AutosaveStatusWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/autosave-status/AutosaveStatusWidgetView.tsx
@@ -1,5 +1,5 @@
import { Stack, Text } from '@chakra-ui/react';
-import { PiCloudCheckBold, PiCloudWarningBold } from 'react-icons/pi';
+import { CloudAlertIcon, CloudCheckIcon } from 'lucide-react';
import { StatusWidgetChip } from '../../components/WidgetFrames';
import type { WidgetViewProps } from '../../types';
@@ -7,7 +7,7 @@ import { useWorkbench } from '../../WorkbenchContext';
export const AutosaveStatusWidgetView = ({ presentation }: WidgetViewProps) => {
const { state } = useWorkbench();
- const icon = state.autosave.status === 'error' ? PiCloudWarningBold : PiCloudCheckBold;
+ const icon = state.autosave.status === 'error' ? CloudAlertIcon : CloudCheckIcon;
const label = state.autosave.status === 'saved' ? 'Saved' : state.autosave.status;
if (presentation === 'tooltip') {
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasStagingControls.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasStagingControls.tsx
index a13a19e59c..16a7928d3f 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasStagingControls.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasStagingControls.tsx
@@ -1,12 +1,5 @@
import { Box, HStack, ScrollArea, Stack, Text } from '@chakra-ui/react';
-import {
- PiCaretLeftBold,
- PiCaretLineDownBold,
- PiCaretLineUpBold,
- PiCaretRightBold,
- PiEyeBold,
- PiEyeSlashBold,
-} from 'react-icons/pi';
+import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, EyeIcon, EyeOffIcon } from 'lucide-react';
import type { CanvasStagingCandidateContract, GeneratedImageContract } from '../../types';
import { Button, IconButton } from '../../components/ui/Button';
@@ -99,7 +92,7 @@ export const CanvasStagingControls = ({
variant="outline"
onClick={onToggleThumbnails}
>
- {areThumbnailsVisible ? <PiCaretLineDownBold /> : <PiCaretLineUpBold />}
+ {areThumbnailsVisible ? <ChevronDownIcon /> : <ChevronUpIcon />}
</IconButton>
<IconButton
aria-label="Previous staged candidate"
@@ -108,7 +101,7 @@ export const CanvasStagingControls = ({
variant="outline"
onClick={() => onCycle(-1)}
>
- <PiCaretLeftBold />
+ <ChevronLeftIcon />
</IconButton>
<IconButton
aria-label="Next staged candidate"
@@ -117,7 +110,7 @@ export const CanvasStagingControls = ({
variant="outline"
onClick={() => onCycle(1)}
>
- <PiCaretRightBold />
+ <ChevronRightIcon />
</IconButton>
</HStack>
<HStack gap="2">
@@ -127,7 +120,7 @@ export const CanvasStagingControls = ({
variant="outline"
onClick={onToggleVisibility}
>
- {isVisible ? <PiEyeBold /> : <PiEyeSlashBold />}
+ {isVisible ? <EyeIcon /> : <EyeOffIcon />}
</IconButton>
<Button size="xs" variant="outline" onClick={onDiscardSelected}>
Discard
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/diagnostics/DiagnosticsHeaderActions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/diagnostics/DiagnosticsHeaderActions.tsx
index 403cafbe00..c6874c4836 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/diagnostics/DiagnosticsHeaderActions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/diagnostics/DiagnosticsHeaderActions.tsx
@@ -1,5 +1,5 @@
import { Badge } from '@chakra-ui/react';
-import { PiBugBold } from 'react-icons/pi';
+import { BugIcon } from 'lucide-react';
import { Button } from '../../components/ui/Button';
import { useWorkbench } from '../../WorkbenchContext';
@@ -11,7 +11,7 @@ export const DiagnosticsHeaderActions = () => {
<>
{state.errorLog.length ? (
<Badge colorPalette="red" size="xs">
- <PiBugBold />
+ <BugIcon />
{state.errorLog.length}
</Badge>
) : null}
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/diagnostics/DiagnosticsWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/diagnostics/DiagnosticsWidgetView.tsx
index e95a1f5dae..51a6ead723 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/diagnostics/DiagnosticsWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/diagnostics/DiagnosticsWidgetView.tsx
@@ -1,5 +1,5 @@
import { HStack, Stack, Text } from '@chakra-ui/react';
-import { PiBugBold, PiClipboardTextBold } from 'react-icons/pi';
+import { BugIcon, ClipboardListIcon } from 'lucide-react';
import { StatusWidgetChip } from '../../components/WidgetFrames';
import type { WidgetViewProps } from '../../types';
@@ -13,7 +13,7 @@ export const DiagnosticsWidgetView = ({ presentation, region }: WidgetViewProps)
if (region === 'bottom' && presentation !== 'expanded') {
return (
- <StatusWidgetChip icon={errorCount > 0 ? PiBugBold : PiClipboardTextBold}>Diagnostics: {label}</StatusWidgetChip>
+ <StatusWidgetChip icon={errorCount > 0 ? BugIcon : ClipboardListIcon}>Diagnostics: {label}</StatusWidgetChip>
);
}
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryBoardMenu.tsx b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryBoardMenu.tsx
index a9f33dd02c..0fc2c8e765 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryBoardMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryBoardMenu.tsx
@@ -1,6 +1,6 @@
import { Dialog, HStack, Icon, Input, Menu, Portal, Stack, Text } from '@chakra-ui/react';
-import { useEffect, useRef, useState, type ComponentType } from 'react';
-import { PiArchiveBold, PiDownloadSimpleBold, PiPencilSimpleBold, PiTrashSimpleBold } from 'react-icons/pi';
+import { useEffect, useRef, useState } from 'react';
+import { ArchiveIcon, DownloadIcon, PencilIcon, Trash2Icon, type LucideIcon } from 'lucide-react';
import type { GalleryBoard } from '../../gallery/api';
import { Button } from '../../components/ui/Button';
@@ -86,11 +86,12 @@ export const GalleryBoardMenu = ({
color="fg.default"
minW="12rem"
py="1"
+ px="0"
rounded="lg"
shadow="lg"
>
<BoardMenuItem
- icon={PiDownloadSimpleBold}
+ icon={DownloadIcon}
label="Download Board"
value="download-board"
onClick={() => void actions.downloadBoard(board.id)}
@@ -98,7 +99,7 @@ export const GalleryBoardMenu = ({
{isManagedBoard && (
<>
<BoardMenuItem
- icon={PiPencilSimpleBold}
+ icon={PencilIcon}
label="Rename Board"
value="rename-board"
onClick={() => {
@@ -107,7 +108,7 @@ export const GalleryBoardMenu = ({
}}
/>
<BoardMenuItem
- icon={PiArchiveBold}
+ icon={ArchiveIcon}
label={board.archived ? 'Unarchive Board' : 'Archive Board'}
value="toggle-archived"
onClick={() => void actions.archiveBoard(board.id, !board.archived)}
@@ -115,7 +116,7 @@ export const GalleryBoardMenu = ({
<Menu.Separator borderColor="border.subtle" />
<BoardMenuItem
color="fg.error"
- icon={PiTrashSimpleBold}
+ icon={Trash2Icon}
label="Delete Board"
value="delete-board"
onClick={() => setDeleteTarget(board)}
@@ -135,6 +136,7 @@ export const GalleryBoardMenu = ({
setRenameTarget(null);
}
}}
+ size="sm"
>
<Portal>
<Dialog.Backdrop />
@@ -245,7 +247,7 @@ const BoardMenuItem = ({
onClick,
}: {
color?: string;
- icon: ComponentType;
+ icon: LucideIcon;
label: string;
value: string;
onClick: () => void;
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryBoardSelect.tsx b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryBoardSelect.tsx
index 1aa49647ed..df858cdd0a 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryBoardSelect.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryBoardSelect.tsx
@@ -1,18 +1,34 @@
-import { Badge, Flex, HStack, Icon, Image, Input, Menu, Portal, ScrollArea, Stack, Text } from '@chakra-ui/react';
+import {
+ Badge,
+ Flex,
+ HStack,
+ Icon,
+ Image,
+ Input,
+ InputGroup,
+ Menu,
+ Portal,
+ ScrollArea,
+ Stack,
+ Text,
+} from '@chakra-ui/react';
import { useRef, useState, type MouseEvent } from 'react';
import {
- PiArchiveBold,
- PiCalendarBlankBold,
- PiCaretDownBold,
- PiDotsThreeVerticalBold,
- PiImageBold,
- PiPlusBold,
- PiPushPinBold,
- PiSortAscendingBold,
- PiSortDescendingBold,
-} from 'react-icons/pi';
+ ArchiveIcon,
+ ArrowDownAZIcon,
+ ArrowUpAZIcon,
+ CalendarIcon,
+ ChevronDownIcon,
+ ImageIcon,
+ MoreVerticalIcon,
+ PinIcon,
+ PlusIcon,
+ type LucideIcon,
+ SearchIcon,
+ XIcon,
+} from 'lucide-react';
-import { Button, IconButton } from '../../components/ui/Button';
+import { Button, CloseButton, IconButton } from '../../components/ui/Button';
import type { GalleryBoard } from '../../gallery/api';
import { GalleryBoardMenu, type GalleryBoardMenuTarget } from './GalleryBoardMenu';
import { getBoardCounts } from './galleryStateView';
@@ -64,6 +80,16 @@ export const GalleryBoardSelect = () => {
setBoardMenuTarget({ board, x, y });
};
+ const clearSearch = () => {
+ setBoardSearchTerm('');
+ };
+
+ const clearSearchButton = boardSearchTerm ? (
+ <CloseButton aria-label="Clear search" size="2xs" onClick={clearSearch} me="-2">
+ <XIcon />
+ </CloseButton>
+ ) : null;
+
return (
<>
<Menu.Root
@@ -96,7 +122,7 @@ export const GalleryBoardSelect = () => {
) : (
<Text fontSize="xs">Loading board...</Text>
)}
- <Icon as={PiCaretDownBold} boxSize="3" flexShrink={0} />
+ <Icon as={ChevronDownIcon} boxSize="3" flexShrink={0} />
</Button>
</Menu.Trigger>
<Portal>
@@ -111,23 +137,26 @@ export const GalleryBoardSelect = () => {
overflow="hidden"
rounded="lg"
shadow="lg"
+ p="0"
>
<Stack gap="2" p="2">
- <Input
- aria-label="Search or create boards"
- placeholder="Search or create boards"
- size="sm"
- value={boardSearchTerm}
- onChange={(event) => setBoardSearchTerm(event.currentTarget.value)}
- onKeyDown={(event) => {
- event.stopPropagation();
+ <InputGroup startElement={<Icon as={SearchIcon} size="xs" />} endElement={clearSearchButton}>
+ <Input
+ aria-label="Search or create boards"
+ placeholder="Search or create boards"
+ size="sm"
+ value={boardSearchTerm}
+ onChange={(event) => setBoardSearchTerm(event.currentTarget.value)}
+ onKeyDown={(event) => {
+ event.stopPropagation();
- if (event.key === 'Enter' && !hasAnyMatch) {
- event.preventDefault();
- createBoardFromSearch();
- }
- }}
- />
+ if (event.key === 'Enter' && !hasAnyMatch) {
+ event.preventDefault();
+ createBoardFromSearch();
+ }
+ }}
+ />
+ </InputGroup>
<BoardListControls />
</Stack>
<Menu.Separator borderColor="border.subtle" m="0" />
@@ -155,7 +184,7 @@ export const GalleryBoardSelect = () => {
}}
>
<HStack gap="2" minW="0" w="full">
- <BoardCoverIcon icon={PiPushPinBold} />
+ <BoardCoverIcon icon={PinIcon} />
<Text flex="1" fontSize="xs" fontWeight="500" minW="0" truncate>
{projectRowName}
</Text>
@@ -214,7 +243,7 @@ export const GalleryBoardSelect = () => {
{canCreateFromSearch && (
<Menu.Item value="__create-board__" onClick={createBoardFromSearch}>
<HStack gap="2" minW="0" w="full">
- <BoardCoverIcon icon={PiPlusBold} />
+ <BoardCoverIcon icon={PlusIcon} />
<Text flex="1" fontSize="xs" fontWeight="600" minW="0" truncate>
Create board &ldquo;{trimmedSearchTerm}&rdquo;
</Text>
@@ -270,7 +299,7 @@ const BoardListControls = () => {
variant="outline"
onClick={() => actions.updateSettings({ boardOrderDir: isAscending ? 'DESC' : 'ASC' })}
>
- {isAscending ? <PiSortAscendingBold /> : <PiSortDescendingBold />}
+ {isAscending ? <ArrowUpAZIcon /> : <ArrowDownAZIcon />}
</IconButton>
</HStack>
<HStack gap="1">
@@ -282,7 +311,7 @@ const BoardListControls = () => {
variant={showDateBoards ? 'solid' : 'outline'}
onClick={() => actions.updateSettings({ showDateBoards: !showDateBoards })}
>
- <PiCalendarBlankBold />
+ <CalendarIcon />
</IconButton>
<IconButton
aria-label={showArchivedBoards ? 'Hide archived boards' : 'Show archived boards'}
@@ -292,7 +321,7 @@ const BoardListControls = () => {
variant={showArchivedBoards ? 'solid' : 'outline'}
onClick={() => actions.updateSettings({ showArchivedBoards: !showArchivedBoards })}
>
- <PiArchiveBold />
+ <ArchiveIcon />
</IconButton>
</HStack>
</HStack>
@@ -353,7 +382,7 @@ const BoardRow = ({
onPointerDown={(event) => event.stopPropagation()}
onPointerUp={(event) => event.stopPropagation()}
>
- <PiDotsThreeVerticalBold />
+ <MoreVerticalIcon />
</IconButton>
)}
</Menu.Item>
@@ -388,7 +417,7 @@ const BoardOptionContent = ({
);
};
-const BoardCoverIcon = ({ icon }: { icon: typeof PiImageBold }) => (
+const BoardCoverIcon = ({ icon }: { icon: LucideIcon }) => (
<Flex
align="center"
bg="bg.panel"
@@ -421,5 +450,5 @@ const BoardCover = ({ board }: { board: GalleryBoard }) => {
);
}
- return <BoardCoverIcon icon={board.kind === 'date' ? PiCalendarBlankBold : PiImageBold} />;
+ return <BoardCoverIcon icon={board.kind === 'date' ? CalendarIcon : ImageIcon} />;
};
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryImageGrid.tsx b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryImageGrid.tsx
index feb190580f..9175ad70c2 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryImageGrid.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryImageGrid.tsx
@@ -1,7 +1,7 @@
import { Badge, Box, Flex, ScrollArea, Skeleton, Spinner, Text } from '@chakra-ui/react';
import { useVirtualizer } from '@tanstack/react-virtual';
import { useEffect, useLayoutEffect, useMemo, useRef, useState, type DragEvent, type MouseEvent } from 'react';
-import { PiStarBold, PiStarFill, PiUploadSimpleBold } from 'react-icons/pi';
+import { StarIcon, UploadIcon } from 'lucide-react';
import { ImageContextMenu, type ImageContextMenuTarget } from '../../components/ImageContextMenu';
import { IconButton } from '../../components/ui/Button';
@@ -347,7 +347,7 @@ export const GalleryImageGrid = ({ layout }: { layout: 'stacked' | 'wide' }) =>
rounded="md"
zIndex="1"
>
- <PiUploadSimpleBold size="20" />
+ <UploadIcon size="20" />
<Text fontSize="xs" fontWeight="600">
Drop images to upload to {selectedBoardName}
</Text>
@@ -468,7 +468,7 @@ const GalleryThumbnail = ({
onToggleStarred(image);
}}
>
- {image.starred ? <PiStarFill /> : <PiStarBold />}
+ <StarIcon fill={image.starred ? 'currentColor' : 'none'} />
</IconButton>
{image.width > 0 && image.height > 0 && (
<Badge
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryToolbar.tsx b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryToolbar.tsx
index 7ba5e994dc..b6f382b7c3 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryToolbar.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryToolbar.tsx
@@ -1,35 +1,53 @@
-import { Box, HStack, Input, InputGroup, Menu, Portal, Slider, Spacer, Stack, Switch, Text } from '@chakra-ui/react';
+import {
+ Box,
+ HStack,
+ Icon,
+ Input,
+ InputGroup,
+ Menu,
+ Portal,
+ Slider,
+ Spacer,
+ Stack,
+ Switch,
+ Text,
+} from '@chakra-ui/react';
import { useRef } from 'react';
-import { PiGearSixBold, PiMagnifyingGlassBold, PiUploadSimpleBold } from 'react-icons/pi';
+import { SearchIcon, SettingsIcon, UploadIcon } from 'lucide-react';
import { Button, CloseButton, IconButton } from '../../components/ui/Button';
+import { Tabs } from '../../components/ui/Tabs';
import { isDateBoardId } from '../../gallery/api';
+import type { GalleryView } from '../../gallery/api';
import { GalleryBoardSelect } from './GalleryBoardSelect';
import { useGalleryWidget } from './GalleryWidgetContext';
const ACCEPTED_UPLOAD_EXTENSIONS = 'image/png,image/jpeg,image/webp';
+const galleryViewTabs = [
+ { label: 'Images', value: 'images' },
+ { label: 'Assets', value: 'assets' },
+] satisfies { label: string; value: GalleryView }[];
export const GalleryToolbar = ({ layout }: { layout: 'stacked' | 'wide' }) => {
const { actions, gallery } = useGalleryWidget();
const isWide = layout === 'wide';
const viewTabs = (
- <HStack gap="1">
- <Button
- size="xs"
- variant={gallery.galleryView === 'images' ? 'solid' : 'outline'}
- onClick={() => actions.setView('images')}
- >
- Images
- </Button>
- <Button
- size="xs"
- variant={gallery.galleryView === 'assets' ? 'solid' : 'outline'}
- onClick={() => actions.setView('assets')}
- >
- Assets
- </Button>
- </HStack>
+ <Tabs.Root
+ size="sm"
+ variant="subtle"
+ value={gallery.galleryView}
+ onValueChange={(event) => actions.setView(event.value as GalleryView)}
+ >
+ <Tabs.List>
+ {galleryViewTabs.map((item) => (
+ <Tabs.Trigger key={item.value} value={item.value} fontSize="xs">
+ {item.label}
+ </Tabs.Trigger>
+ ))}
+ </Tabs.List>
+ </Tabs.Root>
);
+
const toolbarActions = (
<HStack gap="2">
<Text color="fg.subtle" fontSize="2xs">
@@ -47,7 +65,7 @@ export const GalleryToolbar = ({ layout }: { layout: 'stacked' | 'wide' }) => {
<Stack gap="2">
{isWide ? (
<HStack gap="2">
- <Box flex="1" maxW="24rem" minW="10rem">
+ <Box flex="1" maxW="16rem" minW="10rem">
<GalleryBoardSelect />
</Box>
{viewTabs}
@@ -63,7 +81,7 @@ export const GalleryToolbar = ({ layout }: { layout: 'stacked' | 'wide' }) => {
</HStack>
</>
)}
- <InputGroup startElement={<PiMagnifyingGlassBold />} endElement={searchClearButton}>
+ <InputGroup startElement={<Icon as={SearchIcon} size="sm" />} endElement={searchClearButton}>
<Input
aria-label="Search gallery images"
placeholder="Search images"
@@ -111,7 +129,7 @@ const GalleryUploadButton = () => {
variant="outline"
onClick={() => fileInputRef.current?.click()}
>
- <PiUploadSimpleBold />
+ <UploadIcon />
</IconButton>
</>
);
@@ -126,7 +144,7 @@ const GallerySettingsMenu = () => {
<Menu.Root positioning={{ placement: 'bottom-end' }}>
<Menu.Trigger asChild>
<IconButton aria-label="Gallery settings" size="xs" variant="outline">
- <PiGearSixBold />
+ <SettingsIcon />
</IconButton>
</Menu.Trigger>
<Portal>
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryWidgetFooter.tsx b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryWidgetFooter.tsx
index 3b4b98d934..811500f272 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryWidgetFooter.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryWidgetFooter.tsx
@@ -1,5 +1,5 @@
import { ButtonGroup, HStack, Pagination } from '@chakra-ui/react';
-import { PiCaretLeftBold, PiCaretRightBold } from 'react-icons/pi';
+import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
import { IconButton } from '../../components/ui/Button';
import { getGallerySettings } from '../../gallery/settings';
@@ -36,7 +36,7 @@ export const GalleryWidgetFooter = (_props: WidgetViewProps) => {
<ButtonGroup gap="1" size="2xs" variant="ghost">
<Pagination.PrevTrigger asChild>
<IconButton aria-label="Previous page">
- <PiCaretLeftBold />
+ <ChevronLeftIcon />
</IconButton>
</Pagination.PrevTrigger>
<Pagination.Items
@@ -48,7 +48,7 @@ export const GalleryWidgetFooter = (_props: WidgetViewProps) => {
/>
<Pagination.NextTrigger asChild>
<IconButton aria-label="Next page">
- <PiCaretRightBold />
+ <ChevronRightIcon />
</IconButton>
</Pagination.NextTrigger>
</ButtonGroup>
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryWidgetView.tsx
index 77b7ffa691..542ff95f3d 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/gallery/GalleryWidgetView.tsx
@@ -1,5 +1,5 @@
import { useCallback, useEffect, useMemo, useRef } from 'react';
-import { PiImageBold } from 'react-icons/pi';
+import { ImageIcon } from 'lucide-react';
import { StatusWidgetChip } from '../../components/WidgetFrames';
import { useImageActions } from '../../components/useImageActions';
@@ -133,7 +133,7 @@ export const GalleryWidgetView = ({ presentation, region }: WidgetViewProps) =>
}, [dispatch, page, settings.paginationMode, total]);
if (region === 'bottom' && presentation !== 'expanded') {
- return <StatusWidgetChip icon={PiImageBold}>Gallery: {total ?? gallery.images.length}</StatusWidgetChip>;
+ return <StatusWidgetChip icon={ImageIcon}>Gallery: {total ?? gallery.images.length}</StatusWidgetChip>;
}
return (
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/history-controls/HistoryControlsWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/history-controls/HistoryControlsWidgetView.tsx
index 754d8dfb30..8c8359dacc 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/history-controls/HistoryControlsWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/history-controls/HistoryControlsWidgetView.tsx
@@ -1,5 +1,5 @@
import { HStack } from '@chakra-ui/react';
-import { PiArrowClockwiseBold, PiArrowCounterClockwiseBold } from 'react-icons/pi';
+import { Redo2Icon, Undo2Icon } from 'lucide-react';
import { IconButton } from '../../components/ui/Button';
import { useWorkbench } from '../../WorkbenchContext';
@@ -24,7 +24,7 @@ export const HistoryControlsWidgetView = () => {
dispatch({ type: 'undoProjectChange' });
}}
>
- <PiArrowCounterClockwiseBold />
+ <Undo2Icon />
</IconButton>
<IconButton
aria-label="Redo"
@@ -39,7 +39,7 @@ export const HistoryControlsWidgetView = () => {
dispatch({ type: 'redoProjectChange' });
}}
>
- <PiArrowClockwiseBold />
+ <Redo2Icon />
</IconButton>
</HStack>
);
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersHeaderActions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersHeaderActions.tsx
index a1083209ae..6d7d9a06bb 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersHeaderActions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersHeaderActions.tsx
@@ -1,9 +1,9 @@
-import { PiDotsThreeBold } from 'react-icons/pi';
+import { MoreHorizontalIcon } from 'lucide-react';
import { IconButton } from '../../components/ui/Button';
export const LayersHeaderActions = () => (
<IconButton aria-label="Layer options" color="fg.muted" size="2xs" variant="ghost">
- <PiDotsThreeBold />
+ <MoreHorizontalIcon />
</IconButton>
);
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx
index d63e3d714d..a688b44e88 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx
@@ -1,5 +1,5 @@
import { Box, Flex, HStack, Icon, Stack, Text } from '@chakra-ui/react';
-import { PiStackBold } from 'react-icons/pi';
+import { LayersIcon } from 'lucide-react';
import { useWorkbench } from '../../WorkbenchContext';
@@ -22,7 +22,7 @@ export const LayersWidgetView = () => {
rounded="md"
p="4"
>
- <Icon as={PiStackBold} boxSize="6" />
+ <Icon as={LayersIcon} boxSize="6" />
<Text fontSize="2xs" textAlign="center">
{layers.length} layers, {activeProject.canvas.stagingArea.pendingImageIds.length} staged images.
</Text>
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/notifications/NotificationsWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/notifications/NotificationsWidgetView.tsx
index 238e9582b0..ba0200be3a 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/notifications/NotificationsWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/notifications/NotificationsWidgetView.tsx
@@ -1,5 +1,5 @@
import { Badge, HStack, Icon, Stack, Text } from '@chakra-ui/react';
-import { PiBellBold, PiCheckCircleBold, PiInfoBold, PiWarningBold, PiXCircleBold } from 'react-icons/pi';
+import { BellIcon, CircleCheckIcon, CircleXIcon, InfoIcon, TriangleAlertIcon, type LucideIcon } from 'lucide-react';
import { StatusWidgetChip } from '../../components/WidgetFrames';
import type { WidgetViewProps, WorkbenchNotificationKind } from '../../types';
@@ -12,17 +12,17 @@ const kindColorPalette: Record<WorkbenchNotificationKind, string> = {
};
const kindIcon = {
- error: PiXCircleBold,
- info: PiInfoBold,
- success: PiCheckCircleBold,
-} satisfies Record<WorkbenchNotificationKind, typeof PiInfoBold>;
+ error: CircleXIcon,
+ info: InfoIcon,
+ success: CircleCheckIcon,
+} satisfies Record<WorkbenchNotificationKind, LucideIcon>;
export const NotificationsWidgetView = ({ presentation, region }: WidgetViewProps) => {
const { state } = useWorkbench();
const unreadCount = state.notifications.filter((notification) => !notification.isRead).length;
const errorCount = state.notifications.filter((notification) => notification.kind === 'error').length;
const label = unreadCount > 0 ? `${unreadCount} new` : `${state.notifications.length} total`;
- const icon = errorCount > 0 ? PiWarningBold : PiBellBold;
+ const icon = errorCount > 0 ? TriangleAlertIcon : BellIcon;
if (region === 'bottom' && presentation !== 'expanded') {
return <StatusWidgetChip icon={icon}>Notifications: {label}</StatusWidgetChip>;
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewCompare.tsx b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewCompare.tsx
index 828c7a3291..2d9c99f371 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewCompare.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewCompare.tsx
@@ -1,6 +1,6 @@
import { Badge, Box, Flex, HStack, Stack } from '@chakra-ui/react';
import { useRef, useState, type CSSProperties } from 'react';
-import { PiArrowsLeftRightBold, PiColumnsBold, PiXBold } from 'react-icons/pi';
+import { ArrowLeftRightIcon, Columns2Icon, XIcon } from 'lucide-react';
import type { GeneratedImageContract } from '../../types';
import { Button } from '../../components/ui/Button';
@@ -153,15 +153,15 @@ export const PreviewCompare = ({
</Flex>
<HStack flexShrink={0} gap="1" justify="center">
<Button size="2xs" variant="outline" onClick={() => setMode(mode === 'slider' ? 'side-by-side' : 'slider')}>
- <PiColumnsBold />
+ <Columns2Icon />
{mode === 'slider' ? 'Side by Side' : 'Slider'}
</Button>
<Button size="2xs" variant="outline" onClick={onSwap}>
- <PiArrowsLeftRightBold />
+ <ArrowLeftRightIcon />
Swap
</Button>
<Button size="2xs" variant="outline" onClick={onExit}>
- <PiXBold />
+ <XIcon />
Exit Compare
</Button>
</HStack>
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx
index 8f0086ed34..6bd40fe61e 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx
@@ -1,6 +1,6 @@
import { Badge, Box, Flex, HStack, Stack, Text } from '@chakra-ui/react';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
-import { PiCaretLeftBold, PiCaretRightBold } from 'react-icons/pi';
+import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
import { ImageContextMenu, type ImageContextMenuTarget } from '../../components/ImageContextMenu';
import { Button } from '../../components/ui/Button';
@@ -399,7 +399,7 @@ const SelectedImagePreview = ({
variant="outline"
onClick={onPrevious}
>
- <PiCaretLeftBold />
+ <ChevronLeftIcon />
</Button>
<Button
aria-label="Next image in board"
@@ -408,7 +408,7 @@ const SelectedImagePreview = ({
variant="outline"
onClick={onNext}
>
- <PiCaretRightBold />
+ <ChevronRightIcon />
</Button>
</HStack>
</HStack>
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/queue/QueueWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/queue/QueueWidgetView.tsx
index 45a1f1f9c7..70277bb274 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/queue/QueueWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/queue/QueueWidgetView.tsx
@@ -1,5 +1,5 @@
import { Badge, Progress, Stack, Text, HStack } from '@chakra-ui/react';
-import { PiListNumbersBold } from 'react-icons/pi';
+import { ListOrderedIcon } from 'lucide-react';
import { useQueueItemProgress } from '../../backend/progressStore';
import { StatusWidgetChip } from '../../components/WidgetFrames';
@@ -15,7 +15,7 @@ export const QueueWidgetView = ({ presentation, region }: WidgetViewProps) => {
).length;
if (region === 'bottom' && presentation !== 'expanded') {
- return <StatusWidgetChip icon={PiListNumbersBold}>{pendingQueueCount} queued</StatusWidgetChip>;
+ return <StatusWidgetChip icon={ListOrderedIcon}>{pendingQueueCount} queued</StatusWidgetChip>;
}
if (region === 'bottom') {
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/server-status/ServerStatusWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/server-status/ServerStatusWidgetView.tsx
index 5d03432dd8..04baa66e10 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/server-status/ServerStatusWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/server-status/ServerStatusWidgetView.tsx
@@ -1,5 +1,5 @@
import { Stack, Text } from '@chakra-ui/react';
-import { PiPlugsConnectedBold, PiXCircleBold } from 'react-icons/pi';
+import { CircleXIcon, PlugZapIcon } from 'lucide-react';
import { StatusWidgetChip } from '../../components/WidgetFrames';
import type { WidgetViewProps } from '../../types';
@@ -32,11 +32,11 @@ export const ServerStatusWidgetView = ({ presentation }: WidgetViewProps) => {
if (isDisconnected) {
return (
- <StatusWidgetChip borderColor="fg.error" color="fg.error" icon={PiXCircleBold}>
+ <StatusWidgetChip borderColor="fg.error" color="fg.error" icon={CircleXIcon}>
{label}
</StatusWidgetChip>
);
}
- return <StatusWidgetChip icon={PiPlugsConnectedBold}>{label}</StatusWidgetChip>;
+ return <StatusWidgetChip icon={PlugZapIcon}>{label}</StatusWidgetChip>;
};
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/version-status/VersionStatusWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/version-status/VersionStatusWidgetView.tsx
index 933276fb59..84793a1ae7 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/version-status/VersionStatusWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/version-status/VersionStatusWidgetView.tsx
@@ -1,5 +1,5 @@
import { Stack, Text } from '@chakra-ui/react';
-import { PiInfoBold } from 'react-icons/pi';
+import { InfoIcon } from 'lucide-react';
import { StatusWidgetChip } from '../../components/WidgetFrames';
import type { WidgetViewProps } from '../../types';
@@ -18,5 +18,5 @@ export const VersionStatusWidgetView = ({ presentation }: WidgetViewProps) => {
);
}
- return <StatusWidgetChip icon={PiInfoBold}>Version 7.0</StatusWidgetChip>;
+ return <StatusWidgetChip icon={InfoIcon}>Version 7.0</StatusWidgetChip>;
};