mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): hide layer settings by default
This commit is contained in:
parent
bd2c46c267
commit
67a0a024e9
@ -11,7 +11,7 @@ export const IM = memo(() => {
|
||||
const dispatch = useAppDispatch();
|
||||
const selectedBorderColor = useAppSelector((s) => rgbColorToString(s.canvasV2.inpaintMask.fill));
|
||||
const isSelected = useAppSelector((s) => s.canvasV2.selectedEntityIdentifier?.id === 'inpaint_mask');
|
||||
const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: true });
|
||||
const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: false });
|
||||
const onSelect = useCallback(() => {
|
||||
dispatch(entitySelected({ id: 'inpaint_mask', type: 'inpaint_mask' }));
|
||||
}, [dispatch]);
|
||||
|
@ -15,7 +15,7 @@ type Props = {
|
||||
export const Layer = memo(({ id }: Props) => {
|
||||
const dispatch = useAppDispatch();
|
||||
const isSelected = useAppSelector((s) => s.canvasV2.selectedEntityIdentifier?.id === id);
|
||||
const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: true });
|
||||
const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: false });
|
||||
const onSelect = useCallback(() => {
|
||||
dispatch(entitySelected({ id, type: 'layer' }));
|
||||
}, [dispatch, id]);
|
||||
|
Loading…
Reference in New Issue
Block a user