Support and General Use > Theming and Appearance Customization

Trying to create theme for FM Screen

(1/2) > >>

jim234567:
First-time newbie here working with themes, so please go easy on me lol.

I did manage to get a theme working for the While Playing Screen, but for some reason the FM Screen on my player is giving me a bunch of grief, though everything works wonderfully on the UI Simulator I downloaded here:
http://rasher.dk/rockbox/simulator-3.8/sansaclipplus-sim-w32.zip  ???

I can get one or two viewports to take, but once I start adding any stuff to them it goes kaput (reverts to the default RB screen).

Can anyone see if there's an issue with the following code and tell me where I might be going wrong?

(I have RB 3.8.1 on a Sansa Clip+)


--- Code: ---#Enable the status bar
%we

#fonts
%Fl(2,27-Adobe-Helvetica.fnt)

#signal meter, tuning & stereo indicator
%V(0,8,-,8,-)
%xl(a,signal.bmp,1,0)
%xl(b,stereo.bmp,99,0)
%tt%xd(a)
%ts%xd(b)
%tr(30,0,66,6,sstrength.bmp)
%x(c,ssbackground.bmp,30,0)

# Station Frequency
%V(0,20,-,29,2)
%ac%tf MHz

#preset name
%V(0,50,-,14,1)
%s%ac%Tn


--- End code ---




sockbox:
Its difficult to debug without the images. But by commenting out all the lines which references images I was able to use the fms.

I would limit the glyphs used for the font. You may be using too much memory for the wps & fms skin.

%Fl(2,27-Adobe-Helvetica.fnt, 12)

Or, just guessing here, you're running an older build of Rockbox on your clip. Upgrade to the latest build. The %tr tag only works in v3.8+.

[Saint]:
You should be able to use

System/Rockbox Info/Skin RAM Usage:

Either in the simulator or on target and see how close you are to overflowing the skin buffer.
A full .wps/.sbs/.fms/ theme that's image heavy and loads additional fonts is almost certainly capable of doing so on this target.


[St.]

jim234567:
As above, I have RB 3.8.1, which I do believe is still current release (I only DL'ed it 3 days ago).

Skin RAM usage says 19.8K (what's the limit on it?)
Edit: N/M, I see it says 49K (scrolls) so seems I should be good there...


The images are as follows:

All are 1-bit BMP files

signal.bmp is 26x7 px (90B)
stereo.bmp is 30x7 (90B)
sstrength & ssbackground both are 66x6 (134B).

On my wps I have a pb.bmp and pbbackground.bmp, also 66x6 (134B) files

Code I'm using on the wps (which works fine):


--- Code: ---# enable the status bar
%we

# fonts
%Fl(2,08-Rockfont.fnt,20)
%Fl(3,12-Nimbus.fnt)
%Fl(4,07-Fixed.fnt,130)

# Progress bar, song elapsed & remaining time
%V(0,8,-,8,2)
%al%pc%ar%pt
%x(a,pbbackground.bmp,32,0)
%pb(32,0,66,6,pb.bmp)

# track title
%V(0,16,-,25,3)
%ac%s%?it<%it|%fn>

# artist or parent directory
%V(0,28,-,25,3)
%ac%s%?ia<%ia|%?d(2)<%d(2)|%(root%)>>

# album (year) or current directory
%V(0,39,-,25,3)
%ac%s%?id<%id|%?d(1)<%d(1)|%(root%)>> %?iy<%(%iy%)|>

# playlist position/total
%V(0,54,45,-,2)
%al%pp/%pe

# playlist name
%V(47,56,-,-,4)
%ac%s%?pn<%pn|playlist>

--- End code ---

I have not created a .SBS file, that part of it actually suits me pretty well as is (just using 09-Nedore as the "system font" I guess it is).


Can someone briefly explain "glyphs"? I couldn't really find much info about what exactly they are and what they do in the wiki... As you can see, I had been trying some numbers I saw on some examples I had downloaded from the Themes page, but never any success with getting the fms to work (I hadn't tried a number as low as 12 though).



jim234567:
Well, chalk it up to user error lol. I had put 27-Adobe-Helvetica.fnt on the FMS config file, meanwhile the player had 27-Adobe-Helvetica-Bold on it, which I guess breaks the whole entire thing (though I could've sworn I had tried it without the font at least once already)



Put the correct font in, and now it's finally working 8) (well aside from the tuned & stereo indicators don't seem to change status at all, hopefully that ends up being something simple too.

Thanks guys for looking into it for me, it was appreciated.

(this board needs a "beer" emoticon thingy lol)

Navigation

[0] Message Index

[#] Next page

Go to full version