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.
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.
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 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 Frustrating when one of the very first things I tried did not work though…
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 Frustrating when one of the very first things I tried did not work though…