Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: pasan on January 29, 2016, 12:51:03 AM

Title: Ipod 4g, 'gray' theme progress bar not appearing
Post by: pasan on January 29, 2016, 12:51:03 AM
As the topic describes, I've downloaded and installed the 'gray' theme http://themes.rockbox.org/index.php?themeid=287&target=ipod4g (http://themes.rockbox.org/index.php?themeid=287&target=ipod4g), and the progress bar does not appear, only the background. I've tried the theme on 2 different 4Gs, one running a nightly, the other 3.13, and both exhibit the same behaviour. Any help is most appreciated, including how I could make the modification myself.
Title: Re: Ipod 4g, 'gray' theme progress bar not appearing
Post by: Frankenpod on January 29, 2016, 11:01:44 AM
As the topic describes, I've downloaded and installed the 'gray' theme http://themes.rockbox.org/index.php?themeid=287&target=ipod4g (http://themes.rockbox.org/index.php?themeid=287&target=ipod4g), and the progress bar does not appear, only the background. I've tried the theme on 2 different 4Gs, one running a nightly, the other 3.13, and both exhibit the same behaviour. Any help is most appreciated, including how I could make the modification myself.

Older themes seem to have some problems with changing Rockbox behaviour, I've found, and stop working.  Usually its that they have bugs that earlier rockbox versions forgave but the latest version doesn't.

Quickly looking at this theme I'd suggest you try changing

%pb(6,73,148,4,progressBar.bmp)

to

%V(6,73,160,4,-)
%pb(0,0,160,4,progressBar.bmp)

That might do it.

(I don't have a 4g and can't be bothered installing the simulator, so am not certain)

Edit - ah, that won't work either - it needs to be
%V(6,73,148,4,-)
%pb(0,0,148,4,progressBar.bmp)

while also resizing the progress bar bitmap to actually be 148x4 (rather than 160x4 as it currently is)
Title: Re: Ipod 4g, 'gray' theme progress bar not appearing
Post by: [Saint] on January 29, 2016, 10:18:20 PM
Generally speaking the themesite will print "compatible with N" for themes, but the big thing that changed and something that can't trivially be checked for is that drawing out of bounds of a viewport, and out of bounds viewports themselves, are no longer allowed.

This probably affects quite a few themes with questionable coding.


[Saint]