When refactoring the palette/color set handling code to add undo/redo (https://invent.kde.org/graphics/krita/-/merge_requests/1617), I began seriously to dislike the current design of the palette docker, new palette dialog and edit palette dialog.
The palette selection button is at the bottom, which makes for an awkward popup, especially if the palette docker is bottom-most. I would like to move this to the top of the docker and make the click are larger and the name of the palette more prominent.
I am not sure whether the new/import/export/delete palette buttons really are best placed in the popup, maybe they should be moved into the top of the palette docker?
The new palette and edit palette dialogs do not offer the same options:
I would like to replace both with a common dialog: it should be possible to set the number number of columns and creating groups when creating a new palette, too.
We have to support groups inside a palette because of file format considerations (we support two palette formats that allow grouping), but I'm not too happy with the current way of creating, editing and removing groups.
For editing a single color swatch, it's not clear what the swatch ID is supposed to mean:
Requirements for the palette docker:
- zoomable -- right now the size of the swatches is dependent on the number of columns
- fixed number of columns
- fixed number of rows
- groups
- named colors
- location of the palette
- file type of the palette
- import/export of all file types we support
- adding/editing/removing palettes
- adding/editing/removing swatches
- drag and drop of swatches
Wishes:
- generate palette from the image