setDefault("textColor") is missing

I’m in the process of upgrading another project of mine to Graphics 2.0, and I stumbled upon the fact that display.setDefault(“textColor”) is missing.

Even though setTextColor has been changed to setFillColor, we should still be able to set a default text color that’s different from a vector object’s default fill color.

Am I missing something? Otherwise please add back the “textColor” key.  :smiley:

I think you’ve absolutely nailed why it doesn’t work.

But I’m guessing Corona would need to build out setDefault a bit to support it now, as what essentially seems needed here is some kind of function reference. (ie: setDefault(“fillColor”, “newText”)) I totally agree with the utility of what you’re asking for but programmatically it seems no different than wanting “circleColor” or any other number of per-function defaults, so it would be interesting to see whether they go legacy or extend the function this time around.

I see what you’re saying, however text objects are still separate from vector objects.

Maybe I’m diving off the shallow end here, but I think it should be fairly easy to put back the “textColor” key and just deal with it internally.

Just updated Corona to the latest Daily and got this as well. setDefault(“fillColor”) didn’t set the default text color either… at least not for my widget.newButtons.

I think you’ve absolutely nailed why it doesn’t work.

But I’m guessing Corona would need to build out setDefault a bit to support it now, as what essentially seems needed here is some kind of function reference. (ie: setDefault(“fillColor”, “newText”)) I totally agree with the utility of what you’re asking for but programmatically it seems no different than wanting “circleColor” or any other number of per-function defaults, so it would be interesting to see whether they go legacy or extend the function this time around.

I see what you’re saying, however text objects are still separate from vector objects.

Maybe I’m diving off the shallow end here, but I think it should be fairly easy to put back the “textColor” key and just deal with it internally.

I am brand new to Corona and was attempting to follow the guides/documentation and reference and they are telling me that

display.setDefault( “textColor”, 150, 150, 150 )

should work!? What’s going on?

I see now that the Corona Terminal says that it is deprecated. I guess the documentation should get fixed :slight_smile:  Frustrating when one of the very first things I tried did not work though… 

Hi @dnassler,

The documentation for this stuff is being corrected this week. Text objects should be colored with setFillColor() under the Graphics 2.0 engine.

Best regards,

Brent

Just updated Corona to the latest Daily and got this as well. setDefault(“fillColor”) didn’t set the default text color either… at least not for my widget.newButtons.

I am brand new to Corona and was attempting to follow the guides/documentation and reference and they are telling me that

display.setDefault( “textColor”, 150, 150, 150 )

should work!? What’s going on?

I see now that the Corona Terminal says that it is deprecated. I guess the documentation should get fixed :slight_smile:  Frustrating when one of the very first things I tried did not work though… 

Hi @dnassler,

The documentation for this stuff is being corrected this week. Text objects should be colored with setFillColor() under the Graphics 2.0 engine.

Best regards,

Brent