Files
vectorcraft/docs
dotCooCoo add7c0f48b Toolbars: a toolbar made with New Toolbar holds menu command buttons
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.
2026-11-22 08:36:06 -08:00
..
2026-11-19 15:12:20 +07:00