Properties I have are being returned from a CustomView as a Paint object.
I want to be able to use the values in a CSS statement to set the text color like this:
B4X:
#DesignerProperty: Key: ActionHighlightColor, DisplayName: Action Highlight Color, FieldType: Color, DefaultValue: 0xFFFC1010
Sub Class_Globals
Dim et as TextField
End Sub
' In Some other sub
Sub Someothersub
AHLColor = Props.Get("ActionHighlightColor")
CSSUtils.SetStyleProperty(et,"-fx-text-fill", AHLColor)
End Sub
As written this produces an error because the CSSUtils is looking for a string.
How to I set the text color using the paint object?
Or how do I convert the paint object to a string I can use in the CSSUtils method above?