Support and General Use > Theming and Appearance Customization

Drawing Lists Using A Skin Examples?

(1/2) > >>

OzzieJacks:
I am trying to write a theme that uses the skin engine to draw its lists (%Lb tags etc) but so far I am not having any luck.  The only documentation I could find on it was here http://www.rockbox.org/wiki/Main/CustomWPS#Drawing_the_lists_using_a_skin and here http://www.rockbox.org/mail/archive/rockbox-dev-archive-2011-07/0020.shtml.  Are there any themes or examples out there that have used this functionality?

If I use the following example from the Custom WPS wiki page I get a segmentation fault.
--- Code: ---%?cs<%Lb(a,100,20)|>
%V(0,0,10,-,1)%Vf(aabbcc)
%?LB<%LB(0,0,10,185, invert)>
%Vi(-,10,0,-,-35,1)
%Vl(a,5,5,160,12,1)
%s%?Lc<%Vg(00ffaa, ff0000, 000000)%Vs(gradient)%>%>%>%ac>zzzzzzz %LT zzzzz%s%?Lc<%ar%<%<%<>
%V(0,185,-,-,1)
%s%LT
--- End code ---

If I take the %Lb tag out of the conditional the segmentation fault disappears but the code has no effect.

I am using a current Linux SDL build and I have also tried it on a few UISimulators.  I will try to do a 3.10 release build of the SDL tommorow just in case something was broken since the last release.

 

gevaerts:
I get a segfault too these days with my "demo" skinned list theme. I'm trying to find the bug.

I also want to upload that theme soonish. I finally found a matching font that I can redistribute...

gevaerts:
OK, the segfaults are gone, but things still don't seem to be working right :(

JdGordon:
bugger, sorry.
If i don't pass out tonight i'll try to remember to go over skin lists and see what the issue is.

OzzieJacks: If you are interested in skinning jump on IRC and talk to me and [saint]. we need more users playing with skins to find more issues, and especially if oyu want to play with skinned lists

OzzieJacks:
gevaerts, JdGordon: Thanks for looking into the problems with skinned lists.  As you stated they do not segfault with the latest commits but don't seem to display either  :(

Once skinned lists are working will the following code work?

--- Code: ---# 1024x768 screen
# minimal skinned list with no line selections
%wd
#
%?cs<%Lb(a,800,40)|> #make each list item on the menu screen 800 wide by 40 tall
#
%Vi(-,0,0,-,-,1) #use the full screen for a UI viewport
%Vl(a,0,0,-,-,1) #use the full area of the list item box 800x40
%s%LT            #just display the list item text for each line
--- End code ---

I will be happy to join you on IRC and help with testing.

Navigation

[0] Message Index

[#] Next page

Go to full version