@EricP
Thank you, because that's what gave me the idea to try it.
Although I thought you'd know it and point it out.
As I already wrote, it's quite misleading that the gradient object
initially receives a solid color fill and then you have to create
the gradient again with the new colors.
As I wrote in my thread "Houston, I have a problem...", it's quite often
the case that a feature one need is already build in.
I always wonder how @vectorstyler knew before hand what I would need.
But my suggestions about creating a gradient are still valid.