Skip to content

Custom task-checkbox symbols and demo upgrade - #103

Merged
luca-chen198 merged 8 commits into
mainfrom
feat/custom-task-checkbox-symbols
Jul 22, 2026
Merged

luca-chen198 merged 8 commits into
mainfrom
feat/custom-task-checkbox-symbols

Conversation

@Nicolas-Py

@Nicolas-Py Nicolas-Py commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Engine

  • TaskCheckboxStyle: task checkboxes accept any SF Symbol pair via uncheckedSymbolName / checkedSymbolName; names that don't resolve fall back to the defaults (square / checkmark.square.fill)

Demo

  • Toolbar controls for engine modes: read-only, raw markdown source, centered reading column, and base font size (A−/A+); the scroll-away-header toggles move into a Header menu
  • Empty documents show a placeholder
  • New "Blockquotes & lists" sample section; the sample tables compare Der Zauberberg, The Master and Margarita, and The Picture of Dorian Gray to show cell wrapping and the horizontal-scroll breakout for wide tables

🤖 Generated with Claude Code

Nicolas-Py and others added 4 commits July 19, 2026 21:21
Add a TaskCheckboxStyle configuration group with uncheckedSymbolName /
checkedSymbolName so embedders can swap the drawn checkbox glyphs (e.g.
circle / checkmark.circle.fill). Defaults keep the stock square symbols,
and unresolvable names fall back to them at draw time. Tinting, sizing,
and click hit-testing are unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Configure square / square.fill via TaskCheckboxStyle and add a task-list
section to the sample markdown so the custom glyphs are visible.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Three engine modes become toolbar toggles: isEditable, rawSourceMode,
and readingWidth (620pt centered column). readingWidth is only read at
makeNSView time, so the reading-column toggle recreates the editor via
.id(). The two scroll-away-header toggles fold into a Header menu, and
the editor gains a styled placeholder for the emptied document.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…tables

New Blockquotes & lists section (nesting, renumbering), and the table
demo swaps the placeholder German cost tables for literature
comparisons (Der Zauberberg, The Master and Margarita, The Picture of
Dorian Gray) — long opening lines exercise cell wrapping, hyphenated
scholarly terms keep the many-column table wide enough to scroll.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
luca-chen198 and others added 4 commits July 20, 2026 20:15
demo: toolbar mode toggles and a richer sample document
The demo now shows the stock square / checkmark.square.fill pair;
TaskCheckboxStyle remains available for embedders and the task-list
section points to it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A−/A+ buttons (10–28pt, step 2) drive the wrapper's fontSize live;
headings, code, and math scale relative to the base size, and the
empty-document placeholder follows it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Nicolas-Py Nicolas-Py changed the title feat(config): allow custom SF Symbols for task checkboxes Custom task-checkbox symbols and demo upgrade Jul 20, 2026
@Nicolas-Py
Nicolas-Py marked this pull request as ready for review July 20, 2026 19:35
@Nicolas-Py
Nicolas-Py requested a review from luca-chen198 July 20, 2026 19:37

@luca-chen198 luca-chen198 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

very nice

@luca-chen198
luca-chen198 merged commit a5f12fc into main Jul 22, 2026
1 check passed
@xandaaaa
xandaaaa deleted the feat/custom-task-checkbox-symbols branch July 22, 2026 09:59
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.

2 participants