GdkColor and styles




I've been reading back through Harlow and looking at style examples - i've
got everything coded, but there are a few things that refuse to work.  For
example, if I set the background color (in some_style->bg[1..5]) to an
off-white color, what usually results is a very whitish color where you
can only see the actual color difference on the borders of widgets where
there is mostly a horizontal divider.  

Example:  Using GdkColor {0, 0xffff, 0xf5f5, 0xeeee} (translated from HTML
color #FFF5EE, hopefully the translation is right) the result is a very
much white background, but borders that have a tinge of "Seashell" which
is what the color is supposed to be.

What's the first field for in the GdkColor?  Is it intensity?  I've only
ever seen code examples where that value is 0.  Is there something there
that I can play with?  I've been primarily playing with the gimp, filling
with certain values, grabbing their hex numbers and inserting them into
the app.  This never works right though  same problem as above.

Anybody have any suggestions?

David

http://opop.nols.com/ Free Software Development
==========================================================================
Der Horizont vieler Menschen ist ein Kreis mit Radius Null -- und das
nennen sie ihren Standpunkt.
==========================================================================
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'



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