Il giorno mer, 11/08/2010 alle 20.47 +0000, Neil Graham ha scritto:

> An alternative is to use Top,Bottom,Left,Right instead of X and Y. But 
> you then have to do decide what happens if Top _and_ Bottom or Left _and_ 
> right are specified.

Why not go the whole way and make it css-style? :)

silly-walks.jpg
{
 left: 10px;
 right: 100px;
 top: 50%;
 bottom: 20%;
 width: 64px;
 height: 64px;
 background-color: #aaa;
}

right would "overwrite" left becaus it comes after it, and bottom
overwrites top for the same reason.

bottom: 20% means (as in Gtk) "the point 20% from bottom of the image
shold be 20% from the bottom of the screen". This way writing
left:50%;top:50%; places the image at the very center of the screen (and
not shifted down and right).

It is extendable, so if you want (in the future) to implement a rounded
box you can add

border-radius: 5px;
border-color: #000;
border-width: 1px;

Maybe a little bit overkill for placing icons, but it could be used for
the whole styling, as gnome is doing, so maybe one day it will be
integrated in gtk+.

Bye.



------------------------------------------------------------------------------
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 
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to