Re: [skinlf-dev] Button text color

Frédéric Lavigne <[email protected]> Sat, 28 May 2005 16:55:19 +0200
Newsgroups gmane.comp.java.skinlf.devel
Message-ID <[email protected]>
Do you mean you want to specify a default button text color in the 
theme?
If so, it could be done in the skinlf-themepack.xml with 
Button.foreground=color. OR it could be done in GtkSkin where the 
mapping between gtk colors and Swing colors is defined.

Do I understand the issue correctly?

-fred

On May 28, 2005, at 16:10, Zsombor wrote:

>
> Hi,
>
>  Currently it is impossible to change the color of text in a 
> button.This
> is very unfortunate, because if someone try to use both dark and bright
> themes, then they forced to change the color from their program
> manually. I think the correct, and backward compatible way to implement
> this feature, is the extending the GtkButton class with an optional
> textColor argument, and when the installUI method get called, it will
> set the foreground color, if the textColor argument is not null.
>  Is there any objection with it, or can I go ahead and implement this
> functionality?
>
> BR
>  Zsombor
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>