mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fixes #2505 add preserve masked to status text
This commit is contained in:
parent
1d62b4210f
commit
77c11a42ee
@ -23,6 +23,7 @@ const selector = createSelector(
|
||||
shouldShowCanvasDebugInfo,
|
||||
layer,
|
||||
boundingBoxScaleMethod,
|
||||
shouldPreserveMaskedArea,
|
||||
} = canvas;
|
||||
|
||||
let boundingBoxColor = 'inherit';
|
||||
@ -56,6 +57,7 @@ const selector = createSelector(
|
||||
shouldShowCanvasDebugInfo,
|
||||
shouldShowBoundingBox: boundingBoxScaleMethod !== 'auto',
|
||||
shouldShowScaledBoundingBox: boundingBoxScaleMethod !== 'none',
|
||||
shouldPreserveMaskedArea,
|
||||
};
|
||||
},
|
||||
{
|
||||
@ -79,6 +81,7 @@ const IAICanvasStatusText = () => {
|
||||
canvasScaleString,
|
||||
shouldShowCanvasDebugInfo,
|
||||
shouldShowBoundingBox,
|
||||
shouldPreserveMaskedArea,
|
||||
} = useAppSelector(selector);
|
||||
|
||||
const { t } = useTranslation();
|
||||
@ -91,6 +94,15 @@ const IAICanvasStatusText = () => {
|
||||
}}
|
||||
>{`${t('unifiedcanvas:activeLayer')}: ${activeLayerString}`}</div>
|
||||
<div>{`${t('unifiedcanvas:canvasScale')}: ${canvasScaleString}%`}</div>
|
||||
{shouldPreserveMaskedArea && (
|
||||
<div
|
||||
style={{
|
||||
color: 'var(--status-working-color)',
|
||||
}}
|
||||
>
|
||||
Preserve Masked Area: On
|
||||
</div>
|
||||
)}
|
||||
{shouldShowBoundingBox && (
|
||||
<div
|
||||
style={{
|
||||
|
Loading…
Reference in New Issue
Block a user