Support and General Use > Theming and Appearance Customization
Progress bar + conditionals.
Yotto:
I imagine he wants to have the progress bar take up the full line if there's no album art, and only half the line (the half without the art on it) if there is album art. Other themes do this with text, but none do it with the progress bar (because it's currently not possible).
Twilight in Zero:
No, that's not it... Here's a picture of my WPS.
The information in the center is supposed to move down when there's album art. The area on the bottom has already been edited to make room. Everything works but the progress bar.
Yotto:
Oh.
Same thing, though, really. I assume you're doing it like so:
PSEUDOCODE:
--- Code: ---if(albumart) {} else {title}
if(albumart) {} else {band}
if(albumart) {} else {album}
if(albumart) {title} else {progressbar}
if(albumart) {band} else {time}
if(albumart) {album} else {}
if(albumart) {progressbar} else {}
if(albumart) {time} else {}
--- End code ---
Which is syntatically similar to what I thought you were doing:
--- Code: ---if(albumart) {progressbar 100 wide} else {progressbar full width}
--- End code ---
Twilight in Zero:
Something like that. Except I just started using customline. The part we're concerned with looks like this:
--- Code: ---# This is the part of the WPS used if Album Art is present.
# The %?C tag comes AFTER the customline -- VERY IMPORTANT!
%e|16|130|124|1|FFFFFF|%?C
%e|16|143|124|1|FFFFFF|%?C
%e|16|156|124|1|FFFFFF|%?C
%?C
%e|2|181|138|1|FFFFFF|%?C
# This is the part of the WPS used if Album Art is NOT present.
%e|16|78|124|1|FFFFFF|%?C
%e|16|91|124|1|FFFFFF|%?C
%e|16|104|124|1|FFFFFF|%?C
%?C
%e|2|129|138|1|FFFFFF|%?C
--- End code ---
Basically what I do is make all the customlines, and use conditionals to determine whether anything will actually be displayed on them or not.
%e doesn't work in conditionals, and it's ugly if I code it that way anyways.
Navigation
[0] Message Index
[*] Previous page
Go to full version