Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Ipod 5G theme update. Please Help!!!!
« previous next »
  • Print
Pages: [1]

Author Topic: Ipod 5G theme update. Please Help!!!!  (Read 1288 times)

Offline Razor-Snake

  • Member
  • *
  • Posts: 2
Ipod 5G theme update. Please Help!!!!
« on: August 16, 2008, 01:27:53 PM »
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|>

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 :\
Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Ipod 5G theme update. Please Help!!!!
« Reply #1 on: August 16, 2008, 02:00:46 PM »
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).
« Last Edit: August 16, 2008, 02:07:31 PM by karashata »
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline Razor-Snake

  • Member
  • *
  • Posts: 2
Re: Ipod 5G theme update. Please Help!!!!
« Reply #2 on: August 16, 2008, 04:47:44 PM »
Thanks a lot, I'll try to make it work.
Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Ipod 5G theme update. Please Help!!!!
« Reply #3 on: August 16, 2008, 10:57:32 PM »
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.
Logged
Welp, my iriver H10 20GB is out of commission again.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Ipod 5G theme update. Please Help!!!!
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 15 queries.