Not dumb at all %-) its works better when the parent node has a background color.... !!!! I don't know why I expected to get the color white Sorry :-) ----- Mail original ----- De: "lilive" lilive@users.sourceforge.net À: "[freeplane:discussion]" 758437@discussion.freeplane.p.re.sourceforge.net Envoyé: Samedi 26 Septembre 2020 20:33:53 Objet: [freeplane:discussion] Parent BackgroundColor Hello, Dumb question: are you sure the parent node actually has a background color? Because background color may...
Ok merci beaucoup ----- Mail original ----- De: "abc163" abc163@users.sourceforge.net À: "[freeplane:discussion]" 758437@discussion.freeplane.p.re.sourceforge.net Envoyé: Vendredi 25 Septembre 2020 20:00:33 Objet: [freeplane:discussion] Re: Parent BackgroundColor I used def abc = node.parent.style.xxx or node.parent.style.xxx to test getBackgroundColor(), getBackgroundColorCode(), backgroundColor and backgroundColorCode on Win 7. All of them return correct values. So I think these parent.style codes...
In fact I want to get the color of the parent node to use it in the creation of a pdf document: -> PDPageContentStream.contentStream.setNonStrokingColor (node.parent.style.backgroundColor) It works well with the color of the current node (node.style.backgroundColor). But node.parent.style.backgroundColor returns null just like node.parent.style.getBackgroundColor () I tried in linux and Windows 10. Do you have a correct value if you are using this function? thank you so much ----- Mail original -----...
The result is still null ----- Mail original ----- De: "abc163" abc163@users.sourceforge.net À: "[freeplane:discussion]" 758437@discussion.freeplane.p.re.sourceforge.net Envoyé: Dimanche 20 Septembre 2020 20:07:31 Objet: [freeplane:discussion] Parent BackgroundColor def getColor = node.parent.style.getBackgroundColorCode() OR def getColor = node.parent.style.getBackgroundColor() Here has the information https://freeplane.sourceforge.io/doc/api/org/freeplane/api/NodeStyleRO.html#getBackgroundColor--...
Hello in a script: How to get the background color of a parent node. node.parent.style.backgroundColor returns null thank you (Freeplane 1.8.7 on Ubuntu)
VOTE: freeplane