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(ui): divide the swatch pane's shelves

Josh Corbett811873a2a853
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/SwatchesPane.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/SwatchesPane.tsx
index 32eb9ffeef..ac054b7f7c 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/SwatchesPane.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/SwatchesPane.tsx
@@ -1,6 +1,6 @@
import type { KeyboardEvent as ReactKeyboardEvent, MouseEvent as ReactMouseEvent, ReactNode } from 'react';
-import { chakra, Flex, HStack, Stack, Text } from '@chakra-ui/react';
+import { chakra, Flex, HStack, Separator, Stack, Text } from '@chakra-ui/react';
import { IconButton } from '@platform/ui/Button';
import { formatHexColor, normalizeHex, parseHexColor } from '@platform/ui/color';
import { DEFAULT_COLOR_SWATCHES, recordRecentColor, useRecentColors } from '@platform/ui/colorPickerStore';
@@ -19,6 +19,8 @@ import { PlusIcon } from 'lucide-react';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
+const SHELF_SEPARATOR = <Separator borderColor="border.subtle" />;
+
/** Share default, account-recent, and project swatches; picks update the same active pair as Color. */
export const SwatchesPane = () => {
const { t } = useTranslation();
@@ -72,7 +74,7 @@ export const SwatchesPane = () => {
return (
<Scrollable h="full">
- <Stack gap="2.5" p="2">
+ <Stack gap="2.5" p="2" separator={SHELF_SEPARATOR}>
<SwatchShelf
activeHex={activeHex}
colors={DEFAULT_COLOR_SWATCHES}