feat(compose): add strikethrough to the formatting toolbar #184

Merged
JMR-dev merged 7 commits from feat-71-strikethrough into main 2026-07-03 01:32:21 +00:00
JMR-dev commented 2026-07-03 00:19:28 +00:00 (Migrated from github.com)

Summary

  • Adds a strikethrough button ("S") to the compose formatting toolbar, placed right after Underline.
  • Wired identically to the existing Bold/Italic/Underline buttons: calls onToggleStyle(RichStyle.Strikethrough) and reflects active state via RichTextEditing.isStyled.
  • Adds the format_strikethrough string resource used as the button's onClickLabel (accessibility label).

The rich-text engine already fully supported strikethrough end-to-end (RichStyle.Strikethrough, HTML <s> serialization/parsing, TextDecoration.LineThrough rendering) — this PR only adds the missing toolbar control.

Closes #71

Test plan

  • assembleDebug
  • testDebugUnitTest
  • lintDebug
  • ktlintCheck
  • detekt
  • compileDebugAndroidTestKotlin

All run locally under JDK 21, all green.

🤖 Generated with Claude Code

## Summary - Adds a strikethrough button ("S") to the compose formatting toolbar, placed right after Underline. - Wired identically to the existing Bold/Italic/Underline buttons: calls `onToggleStyle(RichStyle.Strikethrough)` and reflects active state via `RichTextEditing.isStyled`. - Adds the `format_strikethrough` string resource used as the button's `onClickLabel` (accessibility label). The rich-text engine already fully supported strikethrough end-to-end (`RichStyle.Strikethrough`, HTML `<s>` serialization/parsing, `TextDecoration.LineThrough` rendering) — this PR only adds the missing toolbar control. Closes #71 ## Test plan - [x] `assembleDebug` - [x] `testDebugUnitTest` - [x] `lintDebug` - [x] `ktlintCheck` - [x] `detekt` - [x] `compileDebugAndroidTestKotlin` All run locally under JDK 21, all green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.