mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-24 10:27:44 -06:00
* #299: caret contrasts with the paper, page colour, shading or highlight under it The caret was black (white only in Switch Modes' dark page), so it vanished on a dark page colour, dark shading or a dark highlight. It now takes black or white by WCAG contrast with the background at the caret (wordcraft_render::background_at), cached per layout/view/position. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #299: shapes colour the caret's background only inside their outline; look up only when drawn background_at hit-tests a filled shape's real outline (shape_path), so an ellipse's corner shows what lies beneath. The caret's colour is worked out only when the caret (or IME text) is drawn, and the unused Tokens::caret is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #299: rustfmt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Dmitrii Khlapov <19991457+dkhlapov@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>