# Workflow Buttons

A docker to create multi-action buttons to improve your workflow.

## Usage

Each workflow button can do any of the following actions at the same time:

- select a tool
- select a brush preset
- select a foreground color
- select a background color
- launch an extra script

The first time you open the docker, it contains only the settings button to open its settings dialog.

In the settings dialog, start by clicking the "+" button to add an empty button. It is selected by default. After creating several buttons, click on one to select it. You can move it to the left or to the right of the list with the arrow buttons. You can also delete selected button with the trash can button.

You can see which button is selected in the list as it is highlighted. Also the number of the selected button is displayed next to the "Selected button" label.

After creating and selecting a button, you can now:

- Select the icon mode for the button: custom icon, tool icon, or brush preset icon.
- Select an icon for the button (svg or png files). Click on the button on the left to open a file selection dialog.
- Enter a tooltip text to describe your button.
- Select a tool in the list. If you don't want to select any tool, select the empty line at the beginning of the list.
- Select a brush preset. Click on the button on the left to open a prest selection dialog. To deselect the brush preset, erase the content of the corresponding text field.
- Select a foreground color. You can load the currently selected foreground color with the corresponding button: it will be displayed in a square on the next line, with the info used to save that color. You can save any kind of color supported by Krita. To delete selected color, click on "Clear foreground color".
- Select a background color. Same as for the foreground color...
- Select a script file. Click on the button on the left to open a file selection dialog. To deselect the script, erase the content of the corresponding text field.

There are also two global options. The first one is to select the buttons size. By default it is set to 32 pixels, but you can set it smaller or bigger. The second option is to select the settings button position. By default it is placed separately in the bottom bar of the docker, but you can instead make it appear at the start of the main buttons list (this can be useful to optimize the docker size as it removes the extra height of the bottom bar).

Finally, to save all your changes, click on the OK button. If you want to discard all your changes, click on the Cancel button.