Support and General Use > Theming and Appearance Customization
BROKEN THEMES: CHECK %P, %pb %m AND CustomWPS wiki page
mmadia:
Gotcha. I wanted to make sure as those tags do have a %m in them.
( and yes, i understand now that those tags are wholly unrelated to margin tags )
pixelma:
--- Quote from: BdN3504 on September 20, 2008, 10:04:12 AM ---The %m teg was used to define scrolling margins.
Example:
%s%m|25|151| Disaster is coming.
[colours changed to stress something.]
--- End quote ---
Note that this second red number (including the additional "|") was never a valid variable in official Rockbox, the "official" margin tag only let you set a left margin. There was a patch though for specifying a right margin too and it was used in some unsupported builds and themes. So you would have to caclulate with the screen width minus the left margin to get the viewports width if you have a margin tag with only the left margin specified and want to mimic this old behaviour or as maximum width.
karashata:
I believe the viewports were designed to automatically assume the width and height as "LCD width - x-pos" and "LCD height - y-pos" in absence of width and height definitions...
kugel.:
True, with absence being a "-" instead of a value. This also applies for the font and color parameters.
Font will be normal font (as if you've chosen 1 as value), colors will default to global settings fore- and background color.
E.g. %V|23|10|-|-|-|-|-|
pixelma:
--- Quote from: karashata on October 01, 2008, 08:09:59 PM ---I believe the viewports were designed to automatically assume the width and height as "LCD width - x-pos" and "LCD height - y-pos" in absence of width and height definitions...
--- End quote ---
Right, I'm sorry, somehow forgot about it. But calculating this for yourself can still be helpful if you want to know the maximum width or as a basis to calculate a slightly smaller viewport width... ;)
--- Quote from: pondlife on July 24, 2008, 07:45:08 AM ---As jswetzen said elsewhere:
--- Quote ---The old format was:
%P|filename.bmp|
%pb|height|left-position|right-position|y-position(optional)|
and the new one is:
%pb|filename.bmp|x|y|width|height|
--- End quote ---
--- End quote ---
To add: in the old format all arguments were optional, e.g. you could only specify a different height for your progress bar and the rest was taken from the default. But you had to keep the order, I mean that if you wanted only the y-position to be different, you had to specify everything else before it (height, left-position, right-position) - couldn't have worked otherwise. This is still possible with the new syntax, only that you use a "-" now, where you don't want anything else than the default. See also http://forums.rockbox.org/index.php?topic=18967.msg136930#msg136930 .
Navigation
[0] Message Index
[*] Previous page
Go to full version