mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ui: Match styling of img2img to the rest of the accordions
This commit is contained in:
parent
0a936696c3
commit
a08189d457
@ -1,3 +1,4 @@
|
|||||||
|
import { Flex } from '@chakra-ui/react';
|
||||||
import { RootState } from 'app/store';
|
import { RootState } from 'app/store';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/storeHooks';
|
||||||
import IAISwitch from 'common/components/IAISwitch';
|
import IAISwitch from 'common/components/IAISwitch';
|
||||||
@ -18,11 +19,18 @@ export default function ImageToImageToggle() {
|
|||||||
dispatch(isImageToImageEnabledChanged(e.target.checked));
|
dispatch(isImageToImageEnabledChanged(e.target.checked));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<IAISwitch
|
<Flex background="base.800" py={1.5} px={4} borderRadius={4}>
|
||||||
label={t('common.img2img')}
|
<IAISwitch
|
||||||
isChecked={isImageToImageEnabled}
|
label={t('common.img2img')}
|
||||||
width="auto"
|
isChecked={isImageToImageEnabled}
|
||||||
onChange={handleChange}
|
width="full"
|
||||||
/>
|
onChange={handleChange}
|
||||||
|
justifyContent="space-between"
|
||||||
|
formLabelProps={{
|
||||||
|
fontWeight: 'bold',
|
||||||
|
color: 'base.200',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user