Skip to content

fix(ui-egui): direction icons show the arrow alone, as OneNote does - #94

Merged
mameen merged 6 commits into
mainfrom
fix/sup-005-rtl-arrow/agent-1
Nov 11, 2026
Merged

mameen merged 6 commits into
mainfrom
fix/sup-005-rtl-arrow/agent-1

Conversation

@mameen

@mameen mameen commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Direction icons for paragraph direction (ParaRtl, ParaLtr) now show the direction with the arrow head alone, as OneNote and Word do:

  • The pilcrow keeps its size and shape.
  • The RTL arrow head sits right of the pilcrow, pointing left. The LTR arrow head sits left of the pilcrow, pointing right.
  • Both arrow heads are 4 by 8 points and level with each other.

Tests

  • New unit tests in crates/ui-egui/src/icons.rs (written first, seen to fail): arrow position and spacing, arrow size, arrow height, pilcrow size, and no mirrored pilcrow.
  • The paired visual reference in crates/ui-egui/tests/icons_visual.rs is updated to the same geometry. The paired test requires production and reference to match pixel for pixel.

Checks

  • cargo xtask ci: all checks passed, on the branch rebased onto origin/main (74be4ad).

🤖 Generated with Claude Code

alientechsw and others added 6 commits November 11, 2026 13:01
The arrow head sits to the right of the pilcrow and points left, as in
OneNote. A failing test first showed the arrow at x 3 and the pilcrow at
x 23. The paired visual reference is updated to the same geometry.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The owner asked for the arrow a little higher and spaced, as Word has it.
The head moves up 5 points and its tip moves 1 point right, so there is a
3 point gap from the pilcrow stem. The paired reference matches.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The LTR direction icon's arrow head moves up 5 points, level with the RTL
icon's, so the pair reads as one set. A failing test came first. The
paired reference matches.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The LTR arrow head was 4 points wide and the RTL one 3. The LTR tip moves
in by one point, so both heads are 3 by 6 points. A failing test came
first, and the paired reference matches.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The owner asked for a larger arrow head and a smaller pilcrow. The pilcrow
is scaled to 85 percent of its size and the arrow head is 4 by 8 points.
The LTR icon mirrors the RTL one. Tests were written first, and the paired
reference matches.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The owner asked for the pilcrow to keep its size and shape. The arrow head's
position and direction now carry the paragraph direction. The RTL pilcrow
moves left to leave room for the arrow, and the LTR pilcrow keeps its
original place. A test checks that the pilcrow is not mirrored.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@mameen
mameen merged commit b1564d8 into main Nov 11, 2026
9 checks passed
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