Repository navigation
Preferences ▸ Units drive every length the UI shows and reads (M14.5) - #67
Merged
Merged
Conversation
The General unit is the active document's units: Preferences > Units >
General sets them (one undo step) and is the units new documents start
in (and the unit shown with no document open); Document Setup changes
only the document. The Transform panel, Properties, the Control bar, the
Info panel, rulers, the status bar, Align spacing, Tabs, paragraph
indents, Pattern Options, dialog distances (Move, shape sizes, path
dialogs, Artboard Options, effect distances, Transform Each, parameter
dialogs), New Document and the canvas measurement labels (smart-guide
sizes, moves, the Measure tool, the Live Corners radius) all follow it,
live. Units > Type drives font size, leading and baseline shift; Units >
Stroke also reaches the Appearance panel and the Magic Wand weight
tolerance. Typed units ("5 mm", "12 pt") work in any field; all ten
units are choices; length preferences show in their unit and accept a
unit; offset/simplify/grid/type-size params read typed units. Typed text
starting with a multi-byte character no longer panics the parser.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a reported bug: changing Preferences ▸ Units (for example General to Millimeters) didn't update the UI; everything stayed in points. Every length the UI shows and reads now follows the units, live.
Document.units, saved with the file).prefs.set {unitsGeneral}changes the open document's units in one undo step (none if unchanged). It is also whatfile.newstarts in withoutunits, and what shows with no document open.len_parammakes offset, simplify tolerance, grid gutter and text size/leading accept them too. Length preferences show and accept units.Session::unit/general_unit/type_unit/default_units,Unit::named/key/readout/number, andPrefKind::Length.docs/mcp.mdanddocs/control-protocol.mddescribe the units behaviour.Known limits:
Checks
Rebased onto
0e31fc9(#66).cargo xtask cipasses all 7 steps (fmt, clippy, test, assets, brands, layers, wasm): 1,984 tests, 0 failed.mainstill exists (1,961 → 1,981, no existing test changed);UI_COMMANDS, menu entries and MCP tools are unchanged.🤖 Generated with Claude Code