I'm trying to figure out a way to get a consistent color scheme across layers of different types.
I have a layer of lines (electrical cables) and a layer of points (electrical nodes). The elements in those layers have an integer attribute that corresponds to the ID of their electrical power source.
Simply put, I'd like the cables and node that share the same power source to have the same (random) color.
So I made a categorized style with random colors on one of the layer but I cannot copy it to the other layer since I cannot copy a style from a layer of points to a layer of lines. And if I make another categorized style on the other layer, the random colors will be different.
Also, I can not copy each color by hand since I have about 200 different possible values of the attribute.
Is there a reasonably simple way to achieve what I want to do ?