Currently, there is no documented way for changing over and default label color after button is created.
I have found a way to change it, but it’s a little hack (undocumented methods and properties).
So,could you please add some legal method to change label colors - after button is created?
For example:
[lua]local myButton = widget.newButton{
id = “btn”,
left = 100,
top = 200,
label = “Widget Button”,
labelColor = { default={ 128, 255, 96, 255 }, over={ 0 } },
width = 150, height = 28,
cornerRadius = 8,
onEvent = onButtonEvent
}
… some code…
myButton:setLabelColor({ default={ 255, 255, 255, 255 }, over={ 128, 255, 96, 255 } })[/lua]
Thanks! [import]uid: 123747 topic_id: 23706 reply_id: 323706[/import]