change the order of swatches in the palette

Asked by Brynn

Hello,
I'm working on an image where I'm creating a custom palette using Swatches. But I can't find any way to put the swatches in a different order, in the palette. I've looked everywhere I can think of, but it seems like it just can't be done. So I thought it would be reasonable to put in a wishlist/new feature request. But before I do that, I thought I would ask if there isn't already a way to do it.

I know if it were a GPL file (from GIMP) I could probably edit that file. But if the swatches palette feature creates a text file, I don't know where it is.

So is there any way to put a custom palette swatches in any order, besides the current order they were created?

Thank you very much :-)

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Mc
Solved:
Last query:
Last reply:
Revision history for this message
Best Mc (mc...) said :
#1

colors of the autopalette (swatch) are defined in the svg file in the <defs>, on the form :

    <linearGradient
       id="linearGradient3771"
       osb:paint="solid">
      <stop
         style="stop-color:#00ff00;stop-opacity:1;"
         offset="0"
         id="stop3773" />
    </linearGradient>

and it is "sufficient" (though not very practical) to reorder these elements to reorder the palette.

Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#2

Thank you very much Mc.

Hhmmm.....I've found the defs area, and moved the 1st few nodes that I want to be at the beginning of the palette. But the swatches have not changed position in the palette.

Oh ok. I had to close and re-open the file. But that definitely seems to work.

Thanks again :-)

Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#3

Thanks Mc, that solved my question.