mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): tweak brush fill UI
This commit is contained in:
parent
292e00ab68
commit
0098c33f81
@ -1741,6 +1741,7 @@
|
|||||||
"flipHorizontal": "Flip Horizontal",
|
"flipHorizontal": "Flip Horizontal",
|
||||||
"flipVertical": "Flip Vertical",
|
"flipVertical": "Flip Vertical",
|
||||||
"fill": {
|
"fill": {
|
||||||
|
"fillColor": "Fill Color",
|
||||||
"fillStyle": "Fill Style",
|
"fillStyle": "Fill Style",
|
||||||
"solid": "Solid",
|
"solid": "Solid",
|
||||||
"grid": "Grid",
|
"grid": "Grid",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Flex, Popover, PopoverBody, PopoverContent, PopoverTrigger } from '@invoke-ai/ui-library';
|
import { Box, Flex, Popover, PopoverBody, PopoverContent, PopoverTrigger, Tooltip } from '@invoke-ai/ui-library';
|
||||||
import { createSelector } from '@reduxjs/toolkit';
|
import { createSelector } from '@reduxjs/toolkit';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import IAIColorPicker from 'common/components/IAIColorPicker';
|
import IAIColorPicker from 'common/components/IAIColorPicker';
|
||||||
@ -23,17 +23,13 @@ export const ToolFillColorPicker = memo(() => {
|
|||||||
return (
|
return (
|
||||||
<Popover isLazy>
|
<Popover isLazy>
|
||||||
<PopoverTrigger>
|
<PopoverTrigger>
|
||||||
<Flex
|
<Flex role="button" aria-label={t('controlLayers.fill.fillColor')} tabIndex={-1} w={8} h={8}>
|
||||||
as="button"
|
<Tooltip label={t('controlLayers.fill.fillColor')}>
|
||||||
aria-label={t('controlLayers.brushColor')}
|
<Flex w="full" h="full" alignItems="center" justifyContent="center">
|
||||||
borderRadius="full"
|
<Box borderRadius="full" w={6} h={6} borderWidth={1} bg={rgbaColorToString(fill)} />
|
||||||
borderWidth={1}
|
</Flex>
|
||||||
bg={rgbaColorToString(fill)}
|
</Tooltip>
|
||||||
w={8}
|
</Flex>
|
||||||
h={8}
|
|
||||||
cursor="pointer"
|
|
||||||
tabIndex={-1}
|
|
||||||
/>
|
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent>
|
<PopoverContent>
|
||||||
<PopoverBody minH={64}>
|
<PopoverBody minH={64}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user