Inkscape.org
Beyond the Basics Custom commands in toolbars
  1. #1
    Pablo Gil Pablo Gil @pablogil

    Hi,

    I would like to know if it's possible to add new commands to the toolbars now that they are customizable. I know I can rearrange and disable some commands but, would it be possible to create new commands? for instance: I would like to have booleans commands as buttons in the toolbar.


    Thanks!

  2. #2
    bananakid bananakid @bananakid
    *

    My experiments showed it's impossible to add new commands to toolbars currently for Inkscape 1.0 running in Windows 10. What I did was the following: navigate to %ProgramFiles%\Inkscape\share\inkscape\ui, open menu.xml, look up new command (i.e. DialogObjects), copy command string, open toolbar-commands.ui or toolbar-tool.ui (in same folder), add new command string to file, save and start Inkscape. Inkscape starts correctly, however no new commands appear in toolbars, and if the new command string was pasted high up in code, all commands after new command string disappear in Inkscape. I've made a feature request at GitLab.

  3. #3
    Pablo Gil Pablo Gil @pablogil

    Hahaha, you have exactly described my experiments in order to add a new command, and with the same results, from this new line the commands don't show up, obviously because it throws an error and it breaks.

    I think it might be related with the button constructor, it needs to define an icon, a tooltip and maybe some other parameters. The system is not ready for that, I mean, to add a default icon, tooltip, etc when you don't specify it so it doesn't work.

    Version 1.0 is a great step forward and this kind of UI/UX customization is something that a lot of users will or actually demand in order to improve their workflows and, in other words, to convince them to switch from other softwares to the great Inkscape.

    I will follow your request and I will post here if I find something interesting or new.

    Thanks