The progress line said such a button is labeled with its command's id.
A renamed button shows its own label, and only a button without one
shows the id.
- The Label field takes the keyboard focus with its text selected when the
dialog opens, so typing right away goes into it.
- Switching workspaces closes Rename Button, so OK cannot rename a button
of the same name on a toolbar of the same name in the other workspace.
- The params text and docs say a screen reader reads only the label when it
is the command's label or name, and that a null `label` opens the dialog.
A command button on a toolbar made with New Toolbar showed its
command's label only. Its context menu now has Rename Button…, which
opens a dialog with the button's label; OK gives the button the label
typed, and an empty label gives it back its command's label.
- The label loses the spaces at its ends and has at most 64
characters. Control characters and characters that change the
direction of text show as \u{…} escapes on the button.
- The hover text still shows the command's name and shortcut. A
screen reader says the label and then the command's name, or only
the label when it is the command's label or name.
- Labels are saved with the toolbar (`labels`, left out when empty,
so older layouts load unchanged), and Manage Toolbars' copy keeps
them. Remove from Toolbar and `toolbar.reset` drop a button's label
with it, and a move keeps it.
- `toolbar.renameCommand {command, toolbar, label?}` sets the label
(without `label` it opens the dialog), `toolbar.addCommand` takes an
optional `label`, and `window.toolbar.list` reports `labels`. A
longer label, a label that is not text or a button the toolbar does
not have is an error and changes nothing.
Rename Button… and its rules are VectorCraft's own, and so is the
64-character limit.
Docs: docs/control-protocol.md, docs/mcp.md, docs/target-app-parity.md.
Known::load reset the budget of 12 availability checks on every call, so a
request_discard pass of the same frame asked 12 more. The budget is now
reset only when ctx.cumulative_frame_nr() changes.
ui_listed_on_its_own exempted every params doc starting with {path, which
took in Save Summary... ({path}) and the Scripts folder command
({path: ...}). Both need a path, but ui_command_needs_params returned
false for them, so Save Summary... was offered as a toolbar button and in
Keyboard Shortcuts and ran with empty params. Only the optional {path?
form is exempt now.
A toolbar made with Window > Toolbars > New Toolbar held tools only. Its
Add Tool... menu now ends in an Add Command submenu that searches every
Command Palette result other than a tool (menu commands, plug-in
commands, effects and panels); a pick adds a button after the tools, and
Remove Command in the same menu lists the buttons by their full names
and takes one off.
- A button shows its command's label without the ellipsis, on up to two
lines, and its full name and shortcut on hover. A click runs what the
command's menu item runs, so a command whose item ends in an ellipsis
opens its dialog; while the item is dimmed, the button is dimmed and a
click runs nothing and the status line says why.
- Each command is asked whether it can run once per app state, at most
12 in a frame, and again on a click or a key press.
- The button's context menu has Move Up, Move Down and Remove from
Toolbar.
- The buttons are saved with the toolbar (`commands`, left out when
empty, so older layouts load unchanged), and Manage Toolbars' copy keeps
them. A command that is gone, such as an uninstalled plug-in's, keeps
its button, dimmed and labeled with its id, until it comes back or is
removed.
- `toolbar.addCommand {command, toolbar, at?}` adds or moves a button,
`toolbar.removeCommand {command, toolbar}` takes one off, and
`window.toolbar.list` reports `commands`. `toolbar.reset` with
`toolbar` clears them along with the tools. A UI command that fails
without params, such as `toolbar.addTool`, is not listed and cannot be
added.
Not done: dragging a menu item or a Command Palette result onto a
toolbar, an Add to Toolbar item in the palette, dragging command buttons
to reorder or remove them, and command icons. Command buttons are
VectorCraft's own.
Docs: docs/control-protocol.md, docs/mcp.md, docs/target-app-parity.md.
A color a library pattern's art brings now skips the library's numbered
names while the pattern is imported, instead of being renamed after the
import. The rename also rewrote every other paint in the document linked
to the name the import first gave, such as art still linked to a deleted
"Ink 2", so adding the pattern changed that art. Now the names are held
with placeholder swatches during the import and removed afterwards, and
links that were already in the document stay as they were.
A pattern whose art brings both "Ink" and the library's "Ink 2" keeps the
library's "Ink 2" under its own name when the document gives "Ink"
another color, and the library's "Ink" takes the next free name. A library
pattern with a numbered name, such as "Tiles 2", keeps that name when the
document does not use it.
A global or spot color that a library pattern's art brings under a
numbered name no longer takes a name the library gives another swatch.
Before, adding a pattern whose art uses "Ink" to a document with another
"Ink" brought the color as "Ink 2" even when the library has its own
"Ink 2"; adding that library swatch next then came in as "Ink 2 2". The
brought color now takes the next free name the library does not use
("Ink 3"), and every paint linked to it follows the new name, so adding
the library's "Ink 2" next adds it under its own name and adding both
again adds nothing.
A color the pattern's art brings or takes is the color a library tint
or gradient links to only when it has the library color's paint and its
process, global or spot kind, as for the other lookups in the same add.
The test a_numbered_copy_named_like_another_library_color_is_found now
makes the blue "Ink 2" itself, as an earlier version's pattern add left
it, since a pattern add no longer gives that name.