Support and General Use > Theming and Appearance Customization
Trying to implement album art on c200 theme. Not working?
crzyboyster:
Hi, I was porting the default theme to the c200 and I'm trying to allow the user to use album art even if the screen is tiny. I have all the code set up. Here it is:
--- Quote ---# cabbie 2.0 default for the Sansa c200 Series by Marc Guay
# derived from cabbie 2.0 default (C) 2007, Johannes Voggenthaler (Zinc Alloy)
%wd
%X|wpsbackdrop.bmp|0|0|
%P|pb.bmp|
%xl|A|lockclosed.bmp|36|69|
%xl|B|lockopen.bmp|36|69|
%xl|C|battpl.bmp|51|69|
%xl|D|battch.bmp|51|69|
%xl|E|batt00.bmp|51|69|
%xl|F|batt01.bmp|51|69|
%xl|G|batt02.bmp|51|69|
%xl|H|batt03.bmp|51|69|
%xl|I|batt04.bmp|51|69|
%xl|J|batt05.bmp|51|69|
%xl|K|batt06.bmp|51|69|
%xl|L|batt07.bmp|51|69|
%xl|M|vol0.bmp|69|69|
%xl|N|vol1.bmp|69|69|
%xl|O|vol2.bmp|69|69|
%xl|P|vol3.bmp|69|69|
%xl|Q|shuffle.bmp|86|69|
%xl|R|repeatall.bmp|105|67|
%xl|S|repeatone.bmp|105|67|
%xl|T|repeatshuffle.bmp|105|67|
%xl|U|repeatab.bmp|105|67|
%xl|V|stop.bmp|118|67|
%xl|W|play.bmp|118|67|
%xl|X|pause.bmp|118|67|
%xl|Y|ff.bmp|118|67|
%xl|Z|rew.bmp|118|67|
%xl|a|vol4.bmp|69|69|
%xl|b|vol5.bmp|69|69|
%xl|c|vol6.bmp|69|69|
%xl|d|vol7.bmp|69|69|
%xl|e|vol8.bmp|69|69|
%Cl|1|1|s20|s20|
%pb|8|2|129|54|
#NowPlaying
%?C
%?C
%?C
%s%?CNext: %?It
%?mh
%?bp
%?pv
%?ps
%?mm
%?mp
--- End quote ---
After testing this out, all I get is the below screendump. It detects album art but doesn't want to display it. I'm using a simulator, but it shouldn't matter.
Screendump attached.
Thanks a lot!
yapper:
Try the troubleshooting hints here:
http://www.rockbox.org/twiki/bin/view/Main/AlbumArt#Troubleshooting
It might be the image size larger than the screen size.
Also %Cl|1|1|s20|s20| is going to be too high up relative to the Now Playing bar.
crzyboyster:
Thanks for the advice, yapper, but I tried all of that and the actual album art still doesn't show up.
The image size is 20x20 and I realized that it would be irregularly placed, but I was just trying to get it to show up.
Does anyone know why it's now working?
EDIT: Could it be that the c200 doesn't support album art at all?
pixelma:
--- Quote from: crzyboyster on December 15, 2007, 10:42:50 PM ---EDIT: Could it be that the c200 doesn't support album art at all?
--- End quote ---
The c200 does support album art and I'm using a 40x40 picture in my own WPS (I was just playing around with it actually). This size is really the minimum, I wouldn't make it any smaller. If there is text, it is barely readable - album art at that size has more of a decorative effect.
--- Quote from: yapper on December 15, 2007, 10:30:41 PM ---%Cl|1|1|s20|s20|
--- End quote ---
What's the "s" doing there in your code? The album art wiki doesn't know it - if I remember correctly it was used for resizing which is not in the official builds yet (the patch didn't meet Rockbox standards). There are only alignment markers you can use in this place (l,c,r or t,c,b respectively) which define the position if the picture is smaller than your bounding box and are not even necessary - I would try without and I think you want 40x40 for it in the end, looking at the margin.
crzyboyster:
I am now getting really frustrated. I tried out the following and it still won't work.
--- Quote ---# cabbie 2.0 default for the Sansa c200 Series by Marc Guay
# derived from cabbie 2.0 default (C) 2007, Johannes Voggenthaler (Zinc Alloy)
%wd
%X|wpsbackdrop.bmp|0|0|
%P|pb.bmp|
%xl|A|lockclosed.bmp|36|69|
%xl|B|lockopen.bmp|36|69|
%xl|C|battpl.bmp|51|69|
%xl|D|battch.bmp|51|69|
%xl|E|batt00.bmp|51|69|
%xl|F|batt01.bmp|51|69|
%xl|G|batt02.bmp|51|69|
%xl|H|batt03.bmp|51|69|
%xl|I|batt04.bmp|51|69|
%xl|J|batt05.bmp|51|69|
%xl|K|batt06.bmp|51|69|
%xl|L|batt07.bmp|51|69|
%xl|M|vol0.bmp|69|69|
%xl|N|vol1.bmp|69|69|
%xl|O|vol2.bmp|69|69|
%xl|P|vol3.bmp|69|69|
%xl|Q|shuffle.bmp|86|69|
%xl|R|repeatall.bmp|105|67|
%xl|S|repeatone.bmp|105|67|
%xl|T|repeatshuffle.bmp|105|67|
%xl|U|repeatab.bmp|105|67|
%xl|V|stop.bmp|118|67|
%xl|W|play.bmp|118|67|
%xl|X|pause.bmp|118|67|
%xl|Y|ff.bmp|118|67|
%xl|Z|rew.bmp|118|67|
%xl|a|vol4.bmp|69|69|
%xl|b|vol5.bmp|69|69|
%xl|c|vol6.bmp|69|69|
%xl|d|vol7.bmp|69|69|
%xl|e|vol8.bmp|69|69|
%Cl|1|1|30|30|
%pb|8|2|129|54|
#NowPlaying
%?C
%?C
%?C
%s%?CNext: %?It
%?mh
%?bp
%?pv
%?ps
%?mm
%?mp
--- End quote ---
Anyone know why?
Navigation
[0] Message Index
[#] Next page
Go to full version