A simple example:
MenuStyle "*" ItemFormat "%.5|%.4r%.|%.4s"
First token: “%.5|”, more correct would be “%0.5|”. Meaning:
- %| is a side delimiter, there are one of these to the left and another to the right as you can see. This is an empty space where nothing is drawn. This implies that is you set an Active colorset it will not fill this area, and you will get a margin here
-The number 0.5 means that from the place where the delimiter is set, you count 0 pixels to the left and 5 to the right (I can’t think of any usefull end for this feature in %|, but it is usefull with some other symbols). As you see if the value is zero there is no need to put it.
Second token: “%.4r”, more correct would be “%0.4r”. Meaning:
-%r means “text aligned to the right”, and “l” would mean “to the left”.
-The number means again the same. You can leave some margin around the text to the left or right. In this case the margin is 0 to the left (anyway we had some margin from the previoius token ) and 4 to the right.
Third token: “%.|”, more correct would be “%0.0|”. Meaning:
-%|, already explained above.
-. or 0.0, means no margins to the left or to the right. Anyway, we have some margin to the right in the previous token (4).
Fourth token: “%.4s”, more correct would be “%0.4s”. Meaning:
-%s means sidebar. It has to be the first or last token (not hard to think why).
-0.4 means no margin to the left and 4 pixels margin to the right. The margin to the right will be a little 4 pixels line that will extend to the right of the sidebar (which is to the right of the menu) and will be filled with the same background of the menu (does not matter if it is a normal colorset, a gradient or whatever).
Well, I hope this cleared something out. If not ask again.
- Cheers.