[comp.windows.x.motif] Motif 1.1 Colors

mattf@cac.washington.edu (Matthew Freedman) (02/22/91)

I have two questions regarding color resources in Motif 1.1.

First, it seems that the automatic shadow color generation algorithm has
changed between versions 1.0 and 1.1 -- in my opinion, for the worse. 
From my experiments the bottomShadowColor seems to be the same between
the two versions, but the generated topShadowColor is generally
different. In particular, for a widget with a light background color,
such as lightblue or wheat, the top shadow used to default to white,
which works pretty well. Now it comes out as a putrid grey, which looks
really bad, and not 3-D at all.  I saw the new XmSetColorCalculation
routine, but I really don't feel like writing my own color generator (and we
don't have source yet).  Is there any way of getting around this problem
short of specifying the XmtopShadowColor resources by hand?

My second question is about scrollbar colors. I have tried every
possible combination of resources I could think of, but I can not get
the scrollbars to change. In particular I want the movable piece (what
is that called anyway?) to be a dark color, like in Motif 1.0. No matter
what I do they pick up the background color of the text or list widget
which they are scrolling.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
= Matthew M. Freedman                                                 =
= U. of Washington Information Systems       mattf@cac.washington.edu =
= 4545 15th Ave. NE; 4th Floor               (206) 543-5593           =
= Seattle, WA  98105                                                  =
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

mattf@cac.washington.edu (Matthew Freedman) (03/05/91)

I got no response the last time I posted this, could somebody *please*
give me some feedback on this...

I have two questions regarding color resources in Motif 1.1.

First, it seems that the automatic shadow color generation algorithm has
changed between versions 1.0 and 1.1 -- in my opinion, for the worse. 
From my experiments the bottomShadowColor seems to be the same between
the two versions, but the generated topShadowColor is generally
different. In particular, for a widget with a light background color,
such as lightblue or wheat, the top shadow used to default to white,
which works pretty well. Now it comes out as a putrid grey, which looks
really bad, and not 3-D at all.  I saw the new XmSetColorCalculation
routine, but I really don't feel like writing my own color generator (and we
don't have source yet).  Is there any way of getting around this problem
short of specifying the XmtopShadowColor resources by hand?

My second question is about scrollbar colors. I have tried every
possible combination of resources I could think of, but I can not get
the scrollbars to change. In particular I want the movable piece (what
is that called anyway?) to be a dark color, like in Motif 1.0. No matter
what I do they pick up the background color of the text or list widget
which they are scrolling. I am also unable to change the color of the
"handle" on the XmScale widget.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
= Matthew M. Freedman                                                 =
= U. of Washington Information Systems       mattf@cac.washington.edu =
= 4545 15th Ave. NE; 4th Floor               (206) 543-5593           =
= Seattle, WA  98105                                                  =
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-