mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add in compositing settings header info popups
This commit is contained in:
parent
c46d9b8768
commit
390a1c9fbb
@ -81,7 +81,7 @@ function IAIInformationalPopover({
|
||||
sx={{
|
||||
gap: 3,
|
||||
flexDirection: 'column',
|
||||
|
||||
width: '100%',
|
||||
p: 3,
|
||||
pt: heading ? 0 : 3,
|
||||
}}
|
||||
|
@ -29,7 +29,7 @@ export default function ParamMaskBlurMethod() {
|
||||
};
|
||||
|
||||
return (
|
||||
<IAIInformationalPopover details="compositingBlur">
|
||||
<IAIInformationalPopover details="compositingBlurMethod">
|
||||
<IAIMantineSelect
|
||||
value={maskBlurMethod}
|
||||
onChange={handleMaskBlurMethodChange}
|
||||
|
@ -15,13 +15,19 @@ const ParamCompositingSettingsCollapse = () => {
|
||||
return (
|
||||
<IAICollapse label={t('parameters.compositingSettingsHeader')}>
|
||||
<Flex sx={{ flexDirection: 'column', gap: 2 }}>
|
||||
<SubParametersWrapper label={t('parameters.coherencePassHeader')}>
|
||||
<SubParametersWrapper
|
||||
label={t('parameters.coherencePassHeader')}
|
||||
headerInfoPopover="compositingCoherencePass"
|
||||
>
|
||||
<ParamCanvasCoherenceMode />
|
||||
<ParamCanvasCoherenceSteps />
|
||||
<ParamCanvasCoherenceStrength />
|
||||
</SubParametersWrapper>
|
||||
<Divider />
|
||||
<SubParametersWrapper label={t('parameters.maskAdjustmentsHeader')}>
|
||||
<SubParametersWrapper
|
||||
label={t('parameters.maskAdjustmentsHeader')}
|
||||
headerInfoPopover="compositingMaskAdjustments"
|
||||
>
|
||||
<ParamMaskBlur />
|
||||
<ParamMaskBlurMethod />
|
||||
</SubParametersWrapper>
|
||||
|
@ -1,9 +1,11 @@
|
||||
import { Flex, Text } from '@chakra-ui/react';
|
||||
import IAIInformationalPopover from 'common/components/IAIInformationalPopover';
|
||||
import { ReactNode, memo } from 'react';
|
||||
|
||||
type SubParameterWrapperProps = {
|
||||
children: ReactNode | ReactNode[];
|
||||
label?: string;
|
||||
headerInfoPopover?: string;
|
||||
};
|
||||
|
||||
const SubParametersWrapper = (props: SubParameterWrapperProps) => (
|
||||
@ -21,7 +23,18 @@ const SubParametersWrapper = (props: SubParameterWrapperProps) => (
|
||||
},
|
||||
}}
|
||||
>
|
||||
{props.label && (
|
||||
{props.headerInfoPopover && props.label && (
|
||||
<IAIInformationalPopover details={props.headerInfoPopover}>
|
||||
<Text
|
||||
fontSize="sm"
|
||||
fontWeight="bold"
|
||||
sx={{ color: 'base.600', _dark: { color: 'base.300' } }}
|
||||
>
|
||||
{props.label}
|
||||
</Text>
|
||||
</IAIInformationalPopover>
|
||||
)}
|
||||
{!props.headerInfoPopover && props.label && (
|
||||
<Text
|
||||
fontSize="sm"
|
||||
fontWeight="bold"
|
||||
|
Loading…
Reference in New Issue
Block a user