mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): canvas antialiasing
This commit is contained in:
@ -6,6 +6,7 @@ import IAIIconButton from 'common/components/IAIIconButton';
|
||||
import IAIPopover from 'common/components/IAIPopover';
|
||||
import { canvasSelector } from 'features/canvas/store/canvasSelectors';
|
||||
import {
|
||||
setShouldAntialias,
|
||||
setShouldAutoSave,
|
||||
setShouldCropToBoundingBoxOnSave,
|
||||
setShouldShowCanvasDebugInfo,
|
||||
@ -27,6 +28,7 @@ export const canvasControlsSelector = createSelector(
|
||||
shouldCropToBoundingBoxOnSave,
|
||||
shouldShowCanvasDebugInfo,
|
||||
shouldShowIntermediates,
|
||||
shouldAntialias,
|
||||
} = canvas;
|
||||
|
||||
return {
|
||||
@ -34,6 +36,7 @@ export const canvasControlsSelector = createSelector(
|
||||
shouldCropToBoundingBoxOnSave,
|
||||
shouldShowCanvasDebugInfo,
|
||||
shouldShowIntermediates,
|
||||
shouldAntialias,
|
||||
};
|
||||
},
|
||||
{
|
||||
@ -52,6 +55,7 @@ const UnifiedCanvasSettings = () => {
|
||||
shouldCropToBoundingBoxOnSave,
|
||||
shouldShowCanvasDebugInfo,
|
||||
shouldShowIntermediates,
|
||||
shouldAntialias,
|
||||
} = useAppSelector(canvasControlsSelector);
|
||||
|
||||
return (
|
||||
@ -95,6 +99,11 @@ const UnifiedCanvasSettings = () => {
|
||||
dispatch(setShouldShowCanvasDebugInfo(e.target.checked))
|
||||
}
|
||||
/>
|
||||
<IAICheckbox
|
||||
label={t('unifiedCanvas.antialiasing')}
|
||||
isChecked={shouldAntialias}
|
||||
onChange={(e) => dispatch(setShouldAntialias(e.target.checked))}
|
||||
/>
|
||||
<ClearCanvasHistoryButtonModal />
|
||||
<EmptyTempFolderButtonModal />
|
||||
</Flex>
|
||||
|
Reference in New Issue
Block a user