On Thu, 19 Aug 2010 11:03:04 -0300, José Romildo Malaquias
<[email protected]> wrote:
> Hello.
> 
> I am trying to make sense from theme configuration files, so that I can
> customize them. But it has not been easy, even after reading
> documentation available at http://etherdoxproject.com/etheme_tutorials/
> and http://themes.effx.us/book/e16.
> 
> In particular window border keywords seems cryptic. Maybe someone could
> tell the meaning of the following ones, used to position the border.
> 
>   __TOPLEFT_ORIGIN
>   __TOPLEFT_X_PERCENTAGE
>   __TOPLEFT_X_ABSOLUTE
>   __TOPLEFT_Y_PERCENTAGE
>   __TOPLEFT_Y_ABSOLUTE
> 
>   __BOTTOMRIGHT_ORIGIN
>   __BOTTOMRIGHT_X_PERCENTAGE
>   __BOTTOMRIGHT_X_ABSOLUTE
>   __BOTTOMRIGHT_Y_PERCENTAGE
>   __BOTTOMRIGHT_Y_ABSOLUTE
> 
> 
> 
> Romildo


Hi,

Sorry http://themes.effx.us doesn't have useful information on borders
yet.  I'm the guy that put that all together.  I've just been caught up in
other things since.  I'll get back to it eventually, ;-)

The border around windows _should_ be drawn in several parts.  A left,
right, top and bottom edge as well as corners and whatever buttons you want
your border to have.

The reason I say _should_ is that I've found themes that essentially
defined one big "box-border" rather than each edge.  After the application
is overlaid on top of the box-border you get the same look as if each edge
were defined but the side affect is that you can only have one action per
border part so window scaling becomes a problem.  Themes that did it this
way typically just used "ACTION_MOVE" so no matter where you clicked it
would move the window and not re-size it.

There are two types of numbers you find in the keywords you've mentioned. 
They either represent number of pixels, or justification.  In the case of
justification the values 0, 512, and 1024 mean left, center, and right
respectively in the case of an X (or horizontal) direction or top, middle,
bottom respectively on a Y (or vertical) direction.

To help visualize this you need to imagine that each border part is
drawing a rectangle by defining the top-left corner and bottom-right
corner.  Use the PERCENTAGE values for "general vicinity" placement (with
the aforementioned justification numbers) and ABSOLUTE values for minor
pixel adjustment.

I've asked Kim in the past about the *_ORIGIN keywords and I think even he
was a bit fuzzy on the details.  I've always found it safe to use the value
of -1.  I've seen other values used ( such as 2, 3, 4, etc..) in button
placement.  I think it allows you to shift the endpoints (or ORIGINS) of
your rectangle to the edges of other adjacent rectangle pats.  Hence its
usage in buttons..  I've found it easier use -1 and just draw the rectangle
where you want it with *_PERCENTAGE and *_ABSOLUTE values.

Hope this helps..

- Don

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to