emacs-devel
[Top][All Lists]
Advanced

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

Re: Changing the no-toolkit scrollbar thumb color. (minor issue)


From: Luc Teirlinck
Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue)
Date: Mon, 29 Sep 2003 19:11:06 -0500 (CDT)

Richard Stallman wrote:

   This would be documenting the bug.  That would be an improovement, but
   what we really should do if at all feasible is fix the bug.  This face
   should have its special effect for all toolkits.

The _same_ special effect?

Let us set :foreground to blue and :background to red in the
scroll-bar face.  What happens?

Native scrollbar:

Has a thumb and a trough.  Thumb is blue, trough is red.  Wonderful.

Xaw3d scrollbar:  The default scroll bar.

Has a thumb and a trough.  Both are red.  :foreground does not seem to
have any effect on anything.  

Is this a bug or is it quite simply not possible to give both
different colors?

Motif:

Has a thumb, a trough and two arrows.  Thumb and arrows are red.  Color
of trough is still the same old grey. :foreground does not seem to
have any effect on anything. 

Is this a bug or is the trough color "hard coded" to be grey?  Is it
possible to give the arrows a different color from the thumb using X
resources and if so how do we allow the user to specify three colors
using the scrollbar face?

GTK:

Only one of the four I did not try out myself, but Bob tried it and
found that it had no effect whatsoever.  things do not seem easy,
however.  If nothing else, to quote Jan:

style "scroll"
{
  fg[NORMAL] = "red"     # The arrow color.
  bg[NORMAL] = "yellow"  # The thumb and background around the arrow.
  bg[ACTIVE] = "blue"    # The trough color.
  bg[PRELIGHT] = "white" # The thumb color when the mouse is over it.
}

Those are four colors to customize.  If we want full customizability
through Custom, we would have to allow the user to specify four
colors.

>From the above we see: four different scroll bars, four entirely
different behaviors.

Unless somebody else knows a lot about GTK, we might have to wait a
week until Jan is back to further discuss the GTK case.

Does anybody know more about the Xaw3d and Motif scroll bars?  Stefan?

Sincerely,

Luc.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]