B4J Code Snippet Set all buttons CSS style to transparent

Hi All,

just a neat little one to set the CSS style of all buttons in one go to transparent using the CSSUtils library.

B4X:
'Set all buttons CSS style to transparent
For Each n As Node In MainForm.RootPane.GetAllViewsRecursive
  If n Is Button Then CSSUtils.SetStyleProperty(n, "-fx-background-color", "transparent")
Next
 
Top