Support and General Use > Theming and Appearance Customization
Annoying text over image problem with theme
jgrg1:
Hi,
I just installed Rockbox on my E280 (best move ever!) and decided to modify the Sector theme to include more information. My problem can be seen in the attached screenshot on the bottom left. Here, I have set up a bunch of icons that will switch on/off depending on whether certain DSP modes are set (i.e. replay gain, crossfade, etc). I should point out that faded versions of the icons appear on the background image, and the icon images themselves "glow" more brightly. The icon images are also attached (in jpg form).
The key part of the .wps file in question is on line 85 where I cycle through the different battery levels every 10 seconds (so it cycles between estimated battery time, % battery level and Battery voltage). The text should be right aligned and I'm using some spaces to push the text away from the right-hand margin:
# Battery level and images
%ar%bt %t10;%ar%?bl %t10;%ar%bvV %t10
#
# Other image conditionals go here for progress & volume
#
# Crossfade - Off|Shuffle|Track Skip|Always
%?xf
#
# Replaygain - Off|Track|Album|TrackShuffle|AlbumShuffle|NoTag
%?rg
#
%xdw%xdy%xdw
The %xdw%xdy%xdw line is just to switch the remaining images on. You'll notice in the attached screenshot that there appears to be a strip through the middle of the w,x,y and z images where the image is not displaying. I can only think that this is something to do with text overwriting images, but I'm using a Right Align tag and the spaces should technically be over the battery level image.
I've also tried using a left margin tag instead of right aligning the text, i.e.
%m|95|%bt%t10;%m|115|%?bl%t10;%m|95|%bvV%t10
But the same problem occurs.
Any help would be greatly appreciated. It's very odd.
Regards
Justin
PS. Just to clarify, I'm using an unmodified version of Rockbox, and it's not a buffer size issue, since if I remove the battery text all the images display correctly.
pixelma:
I'd probably work with a left margin which I think would solve this problem and would also make sure that the text would never be above the last icon, possibly get rid of the right alignment with spaces (but you can also keep it). As far as I know you would need the definition in each alternating subline but please read more on the CustomWPS page in the wiki which is a good and quite up to date source of information.
Edit: Oh sorry, just read your edit now again (after I answered) and realised that you already tried the left margin solution - I have no other idea at the moment.... :-\ This happens when you first read and want to reply and then the actual writing of the reply is delayed for some reason.
MarcGuay:
- It's interesting how the crossfade image isn't being affected like the others?
- If you remove the %t codes from that line and just display some static information, does the same problem occur?
jgrg1:
Yes, I've tried:
# battery level and images
%ar%bt # spaces out to here - this comment isn't in the wps
%ar%bvV # spaces out to here - this comment isn't in the wps
%?bl
so the battery text is static, resulting in a similar problem (see attached image screenshot2.jpg). You get the same effect if you simply use spaces to position the text.
Interestingly, if you use the left margin tag the images are not written over. E.g.
# battery level and images
%m|99|%bt
%m|107|%bvV
%?bl
see attached screenshot image (screenshot3.jpg).
So it seems that there is a bug in the display of text over images with right alignment or alternating sublines where it seems to render blank spaces over any images. Should I submit this?
MarcGuay:
--- Quote from: jgrg1 on January 19, 2008, 08:23:19 PM ---%m|95|%bt%t10;%m|115|%?bl%t10;%m|95|%bvV%t10
--- End quote ---
I really don't know if this will make a difference for you but try replacing the above line with this:
--- Code: ---%t10%m|115|%bl%%;%t10%m|95|%bt;%t10%m|95|%bvV
--- End code ---
I noticed it reacted differently in the simulator because of the order the margins are dropped in. I couldn't replicate the problem you're having, though, so I can't say exactly what's causing this, but I'm pretty sure I've seen people using alternating lines to the right of album art without a problem so I'm optimistic that this can be solved.
P.S. I'm still curious why the crossfade image isn't affected... Is it part of the background?
Navigation
[0] Message Index
[#] Next page
Go to full version