widget.newButton labelColor

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]

Out of curiosity, how did you get it to change color?
[import]uid: 112967 topic_id: 23706 reply_id: 106478[/import]

Here it is:

myButton.label:setTextColor( 255, 255, 255, 150 ) myButton.label.color.over = { 0 } myButton.label.color.default = { 255, 255, 255, 150 } [import]uid: 123747 topic_id: 23706 reply_id: 106485[/import]