Skip to content

Feature (UI): Add Invert button for Regional Guidance layers#8876

Merged
lstein merged 3 commits intoinvoke-ai:mainfrom
DustyShoe:Feat(UI)/Add-button-to-invert-regional-guidance
Feb 20, 2026
Merged

Feature (UI): Add Invert button for Regional Guidance layers#8876
lstein merged 3 commits intoinvoke-ai:mainfrom
DustyShoe:Feat(UI)/Add-button-to-invert-regional-guidance

Conversation

@DustyShoe
Copy link
Collaborator

@DustyShoe DustyShoe commented Feb 14, 2026

Summary

Added invert support for Regional Guidance by reusing the existing mask inversion flow.
The invert button and hotkey now work for both Inpaint Mask and Regional Guidance, and the button label is context-aware (Invert Mask vs Invert Region).

One minor issue: The feature shares same icon as "Enable Auto Negative"

Related Issues / Discussions

Closes #8875

QA Instructions

  1. Select an Inpaint Mask layer, click invert, confirm mask flips and button text is Invert Mask.
  2. Select a Regional Guidance layer, click invert, confirm region flips and button text is Invert Region.
  3. With each layer type selected, press Shift+V and confirm inversion works the same as button click.
  4. Select a non-mask layer (e.g. raster/control), confirm invert button is hidden and hotkey does nothing.

Merge Plan

Simple merge.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Feb 14, 2026
@dunkeroni dunkeroni self-assigned this Feb 16, 2026
Copy link
Collaborator

@dunkeroni dunkeroni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected. Changes are minimal and pretty much just expands the types that invert works on.

Per the duplicate icon concern: It's not too bad since the tooltip and menu item call out what is happening, and both of them deal with the inverted mask region. I tried swapping the toolbar icon with PiSelectionInverseDuotone and PiSelectionInverseFill, but neither of them look quite right next to the transform icon since PiSelectionInverseBold is the only inverse with bold lines. I think we can keep it as is.

@lstein lstein enabled auto-merge (squash) February 20, 2026 01:47
@lstein lstein added the v6.12.0 Intended for 6.12.0 release label Feb 20, 2026
@lstein lstein merged commit 033ff77 into invoke-ai:main Feb 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files v6.12.0 Intended for 6.12.0 release

Projects

Status: 6.12.x

Development

Successfully merging this pull request may close these issues.

[enhancement]: Invert Inpaint Mask / Invert Regional Guidence

3 participants