Re: [PATCH] for hovering over activated togglebutton makes it look like a non activated togglebutton



On Mo, 2005-06-20 at 10:00 +0100, Jon Dowland wrote:
> On Sun, Jun 19, 2005 at 01:13:28PM +0200, David Christian Berg wrote:
> > On Mon, 2005-06-13 at 22:43 +0200, Jaap Haitsma wrote:
> > > Hi,
> > > 
> > > If you hover over a toggle button the button becomes bright gray. It 
> > > doesn't matter if the button is in pressed state or in a non pressed 
> > > state. Because of this effect it is very difficult to see if a button is 
> > > in pressed on non pressed state if you hover over it.
> > > 
> > > The patch at [1] removes prelight from pressed togglebuttons
> > 
> > Hey, this is a question of the theme you're using... you could remove it
> > within the default theme, but don't do this within GTK, please!
> 
> Could you provide an example of how PRELIGHT would be treated
> differently for a raised button as to a depressed one please? I am no
> theme guru but I think that this isn't possible.
> 
> Thanks,

It is true that it only is possible to define one PRELIGHT color for the
button, and the box is drawn with state PRELIGHT.

Now the usage of the colors is up to the engine, and it is possible for
the engine to figure out whether the toggle button is depressed or not
(The shadow is different, but it can also check the widget). So
considering this the engine has enough information, to draw anything it
wants to.

Benjamin


Attachment: signature.asc
Description: This is a digitally signed message part



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