Following last advices in this thread, I tried to have a small Java code that do so but did not succeed.
My understanding is that component color is defined in diagram but I don’t understand what/where would be the API.
Remove all non compiling stuff about Filtering in Manifest and Java
Then in the odesign file, you can add a Style customization based on the nature of the component,
The trick to set the color is that you have to create a ContainerMapping with a GradientStyle first, choose the color in the values, then click on “Apply to all” to make it available on any other elements (like components in PAB,PBD,etc)
and voila! (i choose gray for node)
Then a bit of rebranding, replacing Filtering/org.polarsys with something else.