Files
vectorcraft/docs
dotCooCoo bfae97f9a5 Toolbars: Rename Button… gives a command button a label of its own
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.
2026-11-22 15:56:31 -08:00
..
2026-11-19 15:12:20 +07:00
…