Re: Default fg_gc[GTK_STATE_SELECTED]



Bill Haneman <bill haneman sun com> writes:

> Havoc Pennington wrote:
> > 
> > Bill Haneman <bill haneman sun com> writes:
> > >
> > > Does anyone know why this gc is white by default in GTK+ ?
> > 
> > This gc should be used for selectable label text, when the label is
> > selected.
> 
> Hmm, OK, but that means selected labels are quite hard to read,
> why not use text_gc instead ?

You always use either:;

 text[STATE] on base[STATE]

or:

 fg[STATE] on bg[STATE]

Never mixed. For some reason, we used to always use:

 fg[SELECTED] on bg[SELECTED]

even when drawing text that would normally be:

 text[NORMAL] on base[NORMAL]

The new canonical thing is that we use:

 text[SELECTED] on base[SELECTED]

At the same time we did this, we switched the color scheme for 
text[SELECTED] on base[SELECTED] to be dark-on-light instead of
light-on-dark, but fg[SELECTED] on bg[SELECTED] is still the old
white-on-blue. (I think this is just a temporary condition, though
it makes it easy to spot the CLists since they have the old color
scheme.)

If things aren't legible, you are mixing fg/base or text/bg.

Regards,
                                        Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]