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
0923a5b128
commit
e0e7adb2b2
@ -11,7 +11,7 @@ export const IM = memo(() => {
|
|||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const selectedBorderColor = useAppSelector((s) => rgbColorToString(s.canvasV2.inpaintMask.fill));
|
const selectedBorderColor = useAppSelector((s) => rgbColorToString(s.canvasV2.inpaintMask.fill));
|
||||||
const isSelected = useAppSelector((s) => s.canvasV2.selectedEntityIdentifier?.id === 'inpaint_mask');
|
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(() => {
|
const onSelect = useCallback(() => {
|
||||||
dispatch(entitySelected({ id: 'inpaint_mask', type: 'inpaint_mask' }));
|
dispatch(entitySelected({ id: 'inpaint_mask', type: 'inpaint_mask' }));
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
@ -15,7 +15,7 @@ type Props = {
|
|||||||
export const Layer = memo(({ id }: Props) => {
|
export const Layer = memo(({ id }: Props) => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const isSelected = useAppSelector((s) => s.canvasV2.selectedEntityIdentifier?.id === id);
|
const isSelected = useAppSelector((s) => s.canvasV2.selectedEntityIdentifier?.id === id);
|
||||||
const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: true });
|
const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: false });
|
||||||
const onSelect = useCallback(() => {
|
const onSelect = useCallback(() => {
|
||||||
dispatch(entitySelected({ id, type: 'layer' }));
|
dispatch(entitySelected({ id, type: 'layer' }));
|
||||||
}, [dispatch, id]);
|
}, [dispatch, id]);
|
||||||
|
Loading…
Reference in New Issue
Block a user