Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: crzyboyster on September 15, 2007, 11:45:37 AM

Title: Track name, album and artist not centered? New nano wps preview included!
Post by: crzyboyster on September 15, 2007, 11:45:37 AM
Hi, I am currently making a new wps for the nano. here's my problem (pretty much my only one so far), the track, album and artist names just won't center!
here's a preview so that you can diagnose my problem. also, here's the wps code:

Quote
code taken off by me

i am not a "perfect" wps coder either. i have a lot of mistakes in my code (probably), but still help me! also, do wps parser changes happen often? I don't want to recode my themes that much.

EDIT: for some reason, the attachment preview discolored my preview, click on it to make it look right, thanks!
Title: Re: Track name, album and artist not centered? New nano wps preview included!
Post by: polygonal on September 15, 2007, 11:57:09 AM
Your tag probably has extra spaces at the end.
Title: Re: Track name, album and artist not centered? New nano wps preview included!
Post by: bascule on September 15, 2007, 12:01:16 PM
1. Are you using a custom build? If so, that may be the reason.

If not, the only obvious thing I can think of is that some of your tags are padded with spaces, causing them to be misaligned, as your code looks OK...
Title: Re: Track name, album and artist not centered? New nano wps preview included!
Post by: frause on September 15, 2007, 01:19:13 PM
If not, the only obvious thing I can think of is that some of your tags are padded with spaces, causing them to be misaligned, as your code looks OK...

Well, since even the quoted wps lines have trailing spaces, I'd say that's it.

Tip: Select all and the evil whitespace will show itself.              
Title: Re: Track name, album and artist not centered? New nano wps preview included!
Post by: bascule on September 15, 2007, 01:26:19 PM
Well, since even the quoted wps lines have trailing spaces, I'd say that's it.

I didn't even think to check that. You are of course correct. I originally meant the ID3/Vorbis tags,  but actually it's additional spaces at the end of the lines in question actually in the .wps file that is causing the problem.
Title: Re: Track name, album and artist not centered? New nano wps preview included!
Post by: crzyboyster on September 15, 2007, 02:18:08 PM
thank you guys for responding so fast! yes, there were indeed spaces after the track, artist and album tags. after getting rid of them, it worked perfectly. any other suggestions on this wps? does the clock look good at the top? any other things? going to be released tomorrow! ;D