Postby Xav » Tue Oct 09, 2012 8:46 pm
If you want to build up a "library" of gradients, here's one solution:
1) Create a new file and draw an object (e.g. a rectangle) in it. Give the object the gradient you want.
2) Draw another object, and give that a different gradient. Repeat until you've got all the gradients you want.
3) Save the file. Let's call it "gradients.svg". You can come back and add more later, if you want to.
4) When you create a new file and want to use your "library" of gradients, simply drag and drop your gradients.svg file into the Inkscape window of the document you're working on. All the objects, with their gradients, will appear as a single group. Move it out of the way for now.
5) Now you can pick those gradients from the Fill and Stroke dialogue and apply them to objects in your drawing.
6) When you're done, delete the group of objects you imported.
Optionally you can use File > Vacuum Defs before you save to clear up any stray gradients that may have been left behind by this process.
Druban's method is "better", but this approach doesn't take you anywhere near the XML code which I know can scare some people off.