Skip to content

Conversation

csehatt741
Copy link
Contributor

Summary

A new feature was implemented to switch foreground/background colors

  • a new hotkey, toggleFillColor, was added to toggle fill color by x
  • new fields, activeColor, color1 and color2, were added to canvasSettingsSlice to manage fill color
  • ToolFillColorPicker component was refactored to handle foreground/background colors
  • new tanslations, hotkeys.canvas.setFillToWhite, fillColor1 and fillColor2, were added to en.json

Related Issues / Discussions

Closes #8381

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • 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 Aug 30, 2025
Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

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

We still want the d hotkey, but its behaviour should change. The conventional action for d is to set background to black and foreground to white. Then x toggles between them.

Screen.Recording.2025-09-01.at.2.34.54.pm.mov

Looks great besides that small change

@csehatt741 csehatt741 force-pushed the feat/switchable-foreground-background-colors branch from 33db867 to dc51b13 Compare September 2, 2025 08:36
Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

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

Awesome, TY!

@psychedelicious psychedelicious merged commit 547e194 into invoke-ai:main Sep 2, 2025
13 checks passed
@csehatt741 csehatt741 deleted the feat/switchable-foreground-background-colors branch September 2, 2025 09:17
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[enhancement]: Add switchable foreground / background colors
2 participants