There's no automatic way to tell a skin to revert to a default color. One way to do this would be to cache the prior value before you change it, and then use that to restore the original. Alternatively, you could use the indexed color setter; the default palette color for a Terra PushButton is 1. So, you can do this:

pushButton.getStyles().put("color", 1);

That will reset the color to the theme default.

G

On Aug 18, 2009, at 9:33 PM, Scott Lanham wrote:

Hi,

I am changing the color of the text on a button under certain circumstances and am wondering if it is possible to set the "color" style back to it's
default prior to me modifying it.

Thanks,

Scott.

Reply via email to