Skip to content

feat(ui-egui): font name and size combo boxes, OneNote whole sizes - #97

Merged
mameen merged 4 commits into
mainfrom
feat/font-combo-craft-ui/agent-1
Nov 12, 2026
Merged

mameen merged 4 commits into
mainfrom
feat/font-combo-craft-ui/agent-1

Conversation

@mameen

@mameen mameen commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The font name and font size controls are editable boxes with a drop-down arrow, as in OneNote.
  • The arrow opens the list under the box, highlights the current value and scrolls to it.
  • The shared control lives in crates/ui-egui/src/combo.rs.
  • The font list is read on a background thread, so the window opens at once.
  • Windows also reads the per-user font folder.
  • The size list is OneNote's whole sizes, without "pt". This supersedes fix(ui-egui): font size list shows OneNote's whole sizes, without pt #95.

Known gaps

  • Typing a size and leaving the box does not apply it yet: clicking into the box clears the page selection.
  • The floating tools group has no font boxes yet.
  • craft-ui reuse is on hold.

Checks

  • cargo xtask ci: all checks passed on the branch rebased onto origin/main.

🤖 Generated with Claude Code

alientechsw and others added 4 commits November 11, 2026 21:02
The size list now offers OneNote's whole sizes (8 to 72, 16 sizes) and
drops the " pt" text. 9.5 and 10.5 wait for a page-format change, since
the page stores whole sizes.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Font name and font size become OneNote-style combo boxes: an editable box
showing the current value, and a drop-down arrow whose list opens under the
box, highlights the current value and scrolls to it. The shared control lives
in combo.rs. The font name sits beside the size, and the font list is read on
a background thread. Windows also reads the per-user font folder. With no
caret in the page the boxes show the base size and Default, and a choice made
with no caret applies to the next typed text.

Known gaps: typing a size does not apply it yet (the box loses the page
selection on focus); the floating tools group has no font boxes yet.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Main added an inline field to Caret. The helper that places the caret for a
font or size choice now sets it to None.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
On Linux and macOS nothing calls load_fonts_folder, so clippy with warnings
denied failed on the CI runner. It is now built for Windows and tests only.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@mameen
mameen merged commit 50d3664 into main Nov 12, 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