feat(ui): add color swatches to mask fill

This commit is contained in:
psychedelicious
2024-09-23 09:17:05 +10:00
committed by Kent Keirsey
parent 1be1ad9794
commit d9bd6c4e57
6 changed files with 92 additions and 66 deletions

View File

@@ -1,6 +1,6 @@
import { Box, Flex, FormControl, FormLabel } from '@invoke-ai/ui-library';
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
import IAIColorPicker from 'common/components/IAIColorPicker';
import RgbaColorPicker from 'common/components/ColorPicker/RgbaColorPicker';
import {
selectInfillColorValue,
selectInfillMethod,
@@ -30,7 +30,7 @@ const ParamInfillColorOptions = () => {
<FormControl isDisabled={infillMethod !== 'color'}>
<FormLabel>{t('parameters.infillColorValue')}</FormLabel>
<Box w="full" pt={2} pb={2}>
<IAIColorPicker color={infillColor} onChange={handleInfillColor} />
<RgbaColorPicker color={infillColor} onChange={handleInfillColor} />
</Box>
</FormControl>
</Flex>