[Chandler-dev] Styles in Chandler
Alec Flett
alecf at osafoundation.org
Thu Mar 30 13:37:41 PST 2006
Jed Burgess wrote:
> I'm particularly interested in hearing any specific styles that people
> would like to be able to customize. wxWidgets allows for a certain
> set of out-of-the-box customization, but part of this project is going
> to be adding functionality to wx. To that extent I would appreciate
> feedback as to where to direct most of that energy. Currently I've
> heard the most requests for borders on blocks that are different on
> each side. Any other suggestions for things that you would like to be
> able to tweak easily would be much appreciated.
>
I think working towards the CSS box model is probably one of the most
important things for general layout issues.
This document from the CSS2 spec describes it well:
http://www.w3.org/TR/REC-CSS2/box.html
The key takeaway is that the BORDER of a box is distinct from its MARGIN
and PADDING. A margin is a transparent area around the border and
padding, the border itself has a distinct style (like a color or if it
is dashed or not) and the padding is an area between the border and the
actual object, that is styled like the actual object. In the wx world, a
'border' is like CSS's 'margin'
I'm not sure there is value in having a 'padding' for most widgets
except for wx.StaticText, but being able to specify a distinct border
style is quite useful. The CSS box model also gives a nice description
of what it means to have different size borders/margins/padding on each
side..
Alec
> Thanks,
> Jed
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "chandler-dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/chandler-dev
More information about the chandler-dev
mailing list