Change child style in tree structure

you can add content with css, using content in a :before or :after. you could then add a background icons to it
in the example i do use js-injection, but only because it has te be dynamic according to the dropdown. you can make it fixed too depending on what its for.

like you could target every 3th element of a tree too, like in the original question