How to customize toolbar? E.g. add icon for "undo"?

I would like to customize the toolbar.

I want for example add “Undo” and “crop to selection” icon to it.

How can I achieve this?

Click on Settings → Configure Toolbars.

Ok, thank you.
I played a while and found some issues:

Assume I selected “mainToolbar” and want to add “Undo” action.
But there is only “Undo Freehand Brush Stroke” available.
On the other hand when I select “editToolbar” there is an “Undo” action.

How can I assign “Undo” from “editToolbar” to “mainToolbar”?
or how can I add “editToolbar” to toolbar line (right of “mainToolbar”)?

Furthermore I want to add “ResizeCanvas” to “mainToolbar”.
Unfortunately It has no tool icon (left of it). I don’t want pure text.
How can I assign my own tool icon to “Resize Canvas” action or use icon of another action for “Resize Canvas”?

Call the dialog via ‘‘Settings’’ >> ‘‘Configure Toolbars…’’ select the toolbar to modify, select the option you want to put on that toolbar, place it where you want, apply the selection.

That display depends on the last used tool from Krita’s so-called Toolbox, where you select tools like the Freehand Brush Tool, Paint Bucket, etc., so if you have had a different tool selected and used beforehand the name of the undo tool is changed to that tool - see screenshot. But you know you selected the right Undo if it shows the assigned shortcut CTRL + Z. → So, directly after startup and before using any tool, the display should be on any toolbar always Undo, while you are working it changes accordingly to the used tools.
Also, you can have Undo and Redo in every toolbar if you want to, I marked the three locations in my screenshot (although I put the one behind the Brush Options Slider only there to show that it is possible).

The chameleon Undo Tool:

After you had called and closed the toolbar dialog, a small handle appears in front of any of the three toolbars whith it you can grab and move it.

Therefore, you need to create a so-called action-file, where it is relatively easy to assign icons known to Krita, like those you can find in Krita’s scripting school, if it has to be an icon of your own it gets less easy, and therefore I never did the last.
Also, in my screenshot you can see another way of modification, for the Ten Brushes and Ten Scripts selections and other icon-less options I just assigned abbreviations to distinguish the possible selections. That is far easier to do. I adjusted quite a lot of the available options for my use cases.

Michelist

1 Like

If you are interested in my modified action files, or at least the one I created for the “Resize Canvas” you requested, where I set the abbreviation to RC, here are the download links (as I said abbreviation not icon):

ResizeCanvas.action -

kritamenu.action -

https://ufile.io/00rg6gh9

dbexplorer.action -

https://ufile.io/382pfphs

tenbrushes.action -

https://ufile.io/8k365z1u

tenscripts.action -

Currently, my file-hoster seem to have some accessibility/availability issues, for me, it usually works after a (few) reload(s) of that site.

To install such an action-file, you have to put it into the folder “actions” in Krita’s resource-folder and restart Krita afterward. The resource-folder is found via ‘‘Settings’’ >> ‘‘Manage Resources…’’ >> ‘‘Open Resource Folder’’.

Michelist

Thank you for your answer.

Some related questions:

I downloaded your ResizeCanvas action file.
But I did not found a new icon file assignment.
What do I have to specify in
<icon>......</icon> ?
Is the icon filename assigned by Krita GUI or do I have to edit the action file manually?
Where do I find the icon gallery (and the corresponding built-in icon names) for kritas scripting school?

As I wrote I used an abbreviation, if you want icons you have to assign the icon names yourself, the ones from Krita Scripting School are found here:

https://scripting.krita.org/icon-library

These are known to Krita and you don’t need a path, or a way to make them known to Krita, that is the hurdle you have to take with self created icons (but can’t be hard, I just haven’t done it so far).

Lazy me usually uses abbreviations instead of icons, as you can see in the toolbars of my screenshot above. And a two letter abbreviation takes about the space of an icon.
In some cases this is even superior to icons if you take a look on the left side of my edit-toolbar below the canvas, there I can call the single slots from 10 Scripts and Ten Brushes, and in between I added also the slots from the Ten Brush Slots-Plugin. The assigned numbers help to easier distinguish which is which slot, think about a battery of ten identical icons.
In between, I’m even thinking about to shorten these to one letter + one number.
Or in the File/Main Toolbar, where I added “Save Incremental Backup” and “Save Incremental Version” for which I could have chosen even more of those save icons (and then would have had 7 identical icons side by side), but in cases of many identical icons in a row letters can be the better option.
Okay, I could have created Icons therefore, but because I never have tried to assign icons to the toolbars that are unknown to Krita, I stayed with abbreviations. As said above, I’m lazy sometimes.

In case of further questions, feel free to ask.

Michelist

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.