Support and General Use > Theming and Appearance Customization
edit rockbox failsafe skin?
yatto:
Well that was exactly what I wanted to do, me too.
If someone can find a way to re-create the failsafe WPS so that we can tweak it juste a little, that would be great ! I don't think I can do all the WPS by myself...
bluebrother:
--- Quote from: yatto on April 21, 2014, 02:26:24 PM ---If someone can find a way to re-create the failsafe WPS
--- End quote ---
Just extract it from the source code ... it has to be written down somewhere so Rockbox can know about it, right?
http://git.rockbox.org/?p=rockbox.git;a=blob;f=apps/gui/wps.c;h=d1161ea71d4a4b8adae1e634fc77b50e22df5bfe;hb=HEAD#l88
yatto:
That was clever. I didn't think I could possibly read the source code and find it, all these source code don't mean much to me.
But I found it !
Here is the content of the rockbox_failsafe WPS, ready to copy & paste in a .wps file:
--- Code: ---%s%?it<%?in<%in. |>%it|%fn>
%s%?ia<%ia|%?d(2)<%d(2)|%(root%)>>
%s%?id<%id|%?d(1)<%d(1)|%(root%)>> %?iy<%(%iy%)|>
%al%pc/%pt%ar[%pp:%pe]
%fbkBit %?fv<avg|> %?iv<%(id3v%iv%)|%(no id3%)>
%pb
%pm
--- End code ---
I was trying to make it from scratch, just with the appearance I saw and the simulator, that was my own one:
--- Code: ---#activate the status bar (%wd to disable)
%we
#Track number. Track Title
%s%in. %it
#Artist
%s%ia
#Album
%s%id %(%iy%)
#File Path
%s%fp
%pc/%pt%ar[%pp:%pe]
#%pb(x,y,[width],[height],image.bmp)
%pb
#Peak Meter - full line
%pm
#Next song
%s Next: %It - %Ia
--- End code ---
As you can see, my WPS was much more simple, yet a little tweaked, and less efficient because it could not handle any exception. Nevertheless, for a first try in creating a WPS file, it was interesting, and maybe one day I will make my own super-cool WPS and - why not ? - a whole theme.
Yeah, since it was for me the very first time I designed a theme file, I felt like I HAD TO comment every single line, hehe ^^
Thanks for helping me to find this piece of code =)
Navigation
[0] Message Index
[*] Previous page
Go to full version