|
From: Mats B. <ma...@pr...> - 2006-02-18 08:03:09
|
Joe English wrote:
> Mats Bengtsson wrote:
>> I'm trying to make a solid border frame that is so frequently used on Aqua
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^
>> but it always get black. [...]
>
> Do you have any screenshots demonstrating the border style you're
> looking for? (Or better yet, the name of the Appearance Manager
> API routine used to draw them? :-)
>
Attached a few shots from various apps. Hope they make it to the mail list.
There is a further problem since they are usually not drawn on all four
sides.
Perhaps a -borderwidth using the same syntax as -padding.
If you zoom in on Apples own list widget you see the lines overlap in
the corners.
I guess that many of these borders belong to the widgets itself.
Appearence.h:
/*
* The number of pixels that the list box frame is outset from the
* content of the list box.
*/
kThemeMetricListBoxFrameOutset = 6,
> I can't find any Aqua apps or controls that have "solid"
> (in the Tk/Motif sense) borders; most use rounded corners,
> or in some cases solid horizontal separators.
>
I don't believe that separators are used.
>
>> What is wrong with:
>> style layout BorderFrame {
>> BorderFrame.border -sticky nswe
>> }
>> style configure BorderFrame \
>> -relief solid -borderwidth 1 -background gray50
>
> The Tile Aqua theme inherits the default *.border element,
> which in turn just calls Tk_Draw3DBorder, where the border color
> for TK_RELIEF_SOLID is hardcoded to black. But I've got more border
> styles than you can shake a stick at over in the half-bakery [*],
> one of them will probably work.
>
Idioms wont be understood by non native speaking...
I hope it was funny ;-)
Mats
|