A reset in Preferences can leave a row showing the value the window
opened with after a command changed the setting. OK wrote that row, but
Apply stayed disabled because it compared the draft only with the values
at open. Apply is now enabled while any row has been set in the window.
OK sent every row of the draft through prefs.set and wrote Smart Guides,
Snap to Grid and Enable Contextual Task Bar back from the values copied
when the dialog opened. A setting changed by a command, a panel menu or a
script while Preferences was open went back to its old value, and a
workspace switched to while it was open took the Contextual Task Bar of
the workspace the dialog opened in.
- The window keeps each row as it last read it (at open, after an import
or a prefs.reset refreshes it, and after OK or Apply) and the rows set
in it since then. OK and Apply write only the rows set in the window or
whose value differs from the one read, so a reset in the window is
still written. A row changed both ways takes the window's value.
- Enable Contextual Task Bar left alone in the dialog is not written, so
each workspace keeps its own bar.
- OK with nothing changed runs no prefs.set, adds no undo step and does
not ask the host to save the settings; original_editor::commit reports
whether the Edit Original choice changed.
Docs: docs/mcp.md (Preferences) and a line in docs/target-app-parity.md.
After an Apply that entered Touch, the Enable Contextual Task Bar row
kept the value given to the workspace left, and the next Apply wrote it
to Touch. The row now shows the task bar in use after each Apply. When
OK leaves Touch, the workspace returned to takes the row only when it
was edited; otherwise it keeps the value it left with.
The contrast row, its menu rows and its tests move to the craft UI framework,
as main's Color Wheel panel now uses it:
- The row is a Row with a Swatch named Background (a color well whose value is
the background's hex value) and Text for the ratio and the AA and AAA
results, each with the WCAG minimums as its tooltip.
- Show Contrast, Contrast For and Contrast Background are rows of the panel
menu's items (ui.colorWheel.contrast, contrastFor.<id>,
contrastBackground.below and contrastBackground.current), after Show
Opacity. Current Color is gray, and its row answers an error, while the
active proxy has no solid color.
- The kept background and ratio answer are fields of WheelUi instead of panel
state. The answer's key also holds whether the Live Paint Bucket paints,
which changes the proxies' paint without a document revision.
- The row's tests run in the panel's Fixture by accessible name; the drag test
runs an interaction whose previews set the fill, as the Show Document Colors
drag test does.
- The settings lists in the params text, docs/mcp.md and the tests take both
opacity and the contrast keys.
Export… in the Print Presets, PDF Presets, Transparency Flattener Presets
and Perspective Grid Presets dialogs suggested the document's name
(Untitled.vcprintpresets). It now suggests the selected preset's name with
the format's extension, made safe as a file name the way Export Library…
makes a library's. A built-in preset's file is named without its brackets
([Default] gives Default.vcprintpresets). The four dialogs share one
helper, preset_manager::export, and the web downloads the file under the
same name.
The panel's style browser used one id for every document, and styles
are keyed by name. A rename field left open in one document moved to
the next document's style of the same name, with the text typed so far,
and Enter renamed that document's style. The browser id now includes
the document's uid, so the open rename field and the scroll position
are kept per document.
The new test types into a style's rename field, switches documents,
types again and presses Enter. Without the change the second
document's style is renamed to "XY".