feat(compose): strikethrough formatting #71

Closed
opened 2026-07-01 21:22:43 +00:00 by JMR-dev · 0 comments
JMR-dev commented 2026-07-01 21:22:43 +00:00 (Migrated from github.com)

Part of the compose rich-formatting epic — stacked on the rich-text foundation ticket (branch feat-richtext-foundation), which provides RichStyle.Strikethrough + HTML round-trip.

Scope

  • Toolbar toggle in FormattingToolbar (ui/compose/RichTextEditor.kt) — text glyph consistent with the existing "B/I/U" buttons (an "S" rendered with LineThrough), wired through the foundation's generalized toggleStyle/isStyled path for RichStyle.Strikethrough.
  • String resource in the "Compose formatting toolbar" block of res/values/strings.xml.

Acceptance

  • Toggling over a selection produces <s> in the emitted HTML and round-trips; toggle state reflects the selection; editing-op unit test; androidTest (ComposeScreenTest pattern) exercises the button.
Part of the compose rich-formatting epic — stacked on the rich-text foundation ticket (branch `feat-richtext-foundation`), which provides `RichStyle.Strikethrough` + HTML round-trip. **Scope** - Toolbar toggle in `FormattingToolbar` (`ui/compose/RichTextEditor.kt`) — text glyph consistent with the existing "B/I/U" buttons (an "S" rendered with LineThrough), wired through the foundation's generalized `toggleStyle`/`isStyled` path for `RichStyle.Strikethrough`. - String resource in the "Compose formatting toolbar" block of `res/values/strings.xml`. **Acceptance** - Toggling over a selection produces `<s>` in the emitted HTML and round-trips; toggle state reflects the selection; editing-op unit test; androidTest (`ComposeScreenTest` pattern) exercises the button.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JMR-dev/LibreMail#71