Skip to content

Redesign styling API with additions/removals styles#3

Merged
iSapozhnik merged 3 commits intomainfrom
codex/textdiff-styling-ergonomics
Feb 17, 2026
Merged

Redesign styling API with additions/removals styles#3
iSapozhnik merged 3 commits intomainfrom
codex/textdiff-styling-ergonomics

Conversation

@iSapozhnik
Copy link
Owner

@iSapozhnik iSapozhnik commented Feb 17, 2026

Summary

  • introduce TextDiffStyling protocol and concrete TextDiffChangeStyle
  • replace old per-field change colors on TextDiffStyle with additionsStyle and removalsStyle
  • add defaults in a dedicated file and protocol-converting initializer on TextDiffStyle
  • rename unchangedTextColor to textColor
  • migrate layouter, previews, tests, and README examples to the new API

Tests

  • swift test 2>&1 | xcsift --quiet

@iSapozhnik iSapozhnik merged commit f6a2097 into main Feb 17, 2026
2 checks passed
@iSapozhnik iSapozhnik deleted the codex/textdiff-styling-ergonomics branch February 17, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant