Anything that can be set via a style (using "getStyles().put("xxx",
blah)") can be done this way.  Labels have "color", "backgroundColor"
and "disabledColor", Buttons have "color", "borderColor",
"backgroundColor", "disabledColor", "disabledBorderColor", and
"disabledBackgroundColor".  TextArea has "color", "inactiveColor", etc.
You can see all these in the Component Explorer demo
(http://pivot.apache.org/demos/component-explorer.html), by clicking on
the Styles tab at the upper right for each component.

 

Dialogs themselves are windows that are containers for other components
or containers.  But, they do have a background color style that can be
set this same way.  None of these color settings affect any other (that
I know of), so yes, you can set the foreground individually and not
change the background (for instance).  You can play around with this
using the Component Explorer demo program.

 

HTH,

~Roger

 

From: Ajay Bhat [mailto:[email protected]] 
Sent: Wednesday, August 28, 2013 11:17 AM
To: [email protected]
Subject: Re: Coloring similar UI components

 

Great, thanks for the help. 

 

There's a few more doubts I have. Can I color all the text across
different Buttons, TextAreas, Dialogs, Labels, disabled components etc
and <only> the text to different color, while keeping other (prev
mentioned) changes to color intact using this method?

 

What about text cursor in the text areas?

Reply via email to