Support and General Use > Theming and Appearance Customization
Ipod 5G theme update. Please Help!!!!
(1/1)
Razor-Snake:
Hi guys
Ok, so i read the sticky topic and tried to edit the wps code to make the theme work with the new build, but it just doesn't.
Here's the original code:
--- Quote ---%X|bg.bmp|
%P|progress.bmp|
%xl|a|vol0.bmp|269|190|
%xl|b|vol1.bmp|269|190|
%xl|c|vol2.bmp|269|190|
%xl|d|vol3.bmp|269|190|
%xl|e|vol4.bmp|269|190|
%xl|f|vol5.bmp|269|190|
%xl|g|vol6.bmp|269|190|
%xl|h|vol7.bmp|269|190|
%xl|i|vol8.bmp|269|190|
%xl|j|vol9.bmp|269|190|
%xl|k|vol10.bmp|269|190|
%xl|l|stop.bmp|0|82|
%xl|m|play.bmp|0|114|
%xl|n|pause.bmp|0|82|
%xl|o|rewind.bmp|0|143|
%xl|p|forward.bmp|0|138|
%xl|B|repeat1.bmp|118|0|
%xl|C|repeat.bmp|118|0|
%xl|D|repeatab.bmp|118|0|
%xl|H|shuffle.bmp|85|0|
%xl|I|batt0.bmp|266|0|
%xl|J|batt1.bmp|266|0|
%xl|K|batt2.bmp|266|0|
%xl|L|batt3.bmp|266|0|
%xl|M|batt4.bmp|266|0|
%xl|N|batt5.bmp|266|0|
%xl|O|lock.bmp|0|0|
%xl|Q|hd.bmp|29|0|
%wd
%al
%al
%al
%al %?in<%in|unknown> (%pp/%pe)
%al
%al
%al
%al%pb|1|35|295|
%al
%al %?it<%it |%fn>
%al %?ia<%ia |%?d2<%d2|(root)>>
%al %?id<%id |%?d1<%d1|(root)>>
%al
%al %pc -%pr
%al
%al
%al
%al
%al Next: %?It<%It|>
%ar%cH:Mc
%?pv<%xda|%xdb|%xdc|%xdd|%xde|%xdf|%xdg|%xdh|%xdi|%xdj|%xdk>
%?ps<%xdH|%xdG>
%?mp<%xdl|%xdm|%xdn|%xdp|%xdo>
%?mm<%xdF|%xdC|%xdB|%xdH|%xdD>
%?bp<%xdN|%?bl<%xdI|%xdJ|%xdK|%xdL|%xdM>>
%?mh<%xdO|%xdP>
%?lh<%xdQ|>
--- End quote ---
I deleted the %P string and added the progress.bmp to the %pb string, but nothing happened !! Please tell me what to do, i'm such a n00b :\
karashata:
you can get rid of the %al on the %pb line, since it's completely useless as the %pb tag defines where it's positioned and the size with the values in the positions after the image name (the tag syntax is %pb|[image name]|[x-coordinate]|[y-coordinate]|[width]|height]|, substituting the labels in square brackets for the appropriate info (without the brackets, of course).
Also, you will probably need to define at least one viewport since as far as I can recall the default viewport no longer draws anything onto the screen (I may be wrong though...). Just in case, though, you can easily define a full screen viewport with %V|0|0|-|-|1|-|-|, which will use the full width and height of the screen, use the user font, and use the foreground and background colours defined in the .cfg file for the theme.
If that doesn't work, I'm not sure what else might be wrong.
Just a note: Since rockbox now uses definable viewports in the WPS, you may wish to do a lot more rework to this theme to use viewports to better align the various pieces of information rather than spaces, this way the theme will retain its layout better if someone were to decide to use a similar sized font with wider or narrower space characters.
EDIT: I also note that the RTC code in this theme is out of date. You'll need to change it to read %cH:%cM, or perhaps even add a check for 12-hr vs. 24-hr time so it can display either way: %?cf<%cH:%cM|%cI:%cM %cP> (or %cp if you want a lowercase am/pm indicator rather than an uppercase one).
As well, you're missing an image P. which means the code will halt when it tries to preload the image P for the line %?mh<%xdO|%xdP> (you could easily remove the %xdP from that line and it would fix the problem, though).
Razor-Snake:
Thanks a lot, I'll try to make it work.
karashata:
You're also missing an image G for the line %?ps<%xdH|%xdG>... It looks like a lot of your images are either missing or being used twice in different circumstances...
I would fix the theme for you really quick if I could, but I don't have an iPod video or a sim for it. You may have to ask someone else (possibly the original author) to fix it for you.
Navigation
[0] Message Index
Go to full version