Support and General Use > Theming and Appearance Customization
Cover art questions
(1/1)
Elaphe:
Is there a way to display full art hiding the top status bar? I have this feature from a theme I've downloaded, and it works when you pause the music, but the bar is visible (battery, clock, volume...).
Related to this: any way to display a generic image from a specific location, in case the album art is not found? I could put the generic .jpg in every folder that lacks art, but I'd prefer to create a condition so that the program selects the no-art image automatically. I'm using Sansa Zip Clip.
This is the code:
--- Code: ---###### Conditional: full screen album art while paused
%?C<
%?if(%mp,=,3)<
%Vd(a)|
%Vd(b)>|
%Vd(b)>
#########################################
###### Full screen album art while paused
#########################################
%Vl(a,0,6,96,90,-)
%Cl(4,4,88,88,c,c)
%Cd
--- End code ---
[Saint]:
Oh man I hate that formatting so, so, so much...
As if the syntax wasn't already virtually impossible to read, we decided to add whitespace and indentation and the ability to split statements. Fun.
But I digress...
Anyway, yes. This is possible.
You could even make it respect the user's wishes, if you liked. With something like:
--- Code: ---# Conditional Elements
# /* Check the current state of the status bar setting to see what the
# * user wants to do. */
%?St(statusbar)<%we%Vd(STATUS_BAR_ENABLED)|%wd%Vd(STATUS_BAR_DISABLED)>
--- End code ---
...using the STATUS_BAR_* viewport (or, whatever you'd like to call them) identifiers later in the theme to govern which viewport(s) are displayed in either case.
Remember that viewports can share identifiers, so you can use one identifier to call any arbitrary amount of viewports.
As for displaying a placeholder image for the album art in the event that no art is available, yes. This is also possible.
Something like:
--- Code: ---# /* Preload image(s) for use later */
%xl(ALBUM_ART_FALLBACK,0,0)
# /* Album art */
%Vl(ALBUM_ART,0,0,100,100,-)
%Cl(0,0,100,100,c,c)
%?Cd<%Cd|%xd(ALBUM_ART_FALLBACK)>
--- End code ---
If I haven't covered either point in enough detail for you, or have been too vague, or you would like to pick my brains on another topic, feel free to do so.
I am perhaps more easily available to consult with on our IRC channel where I am known by the same username. My locale is +12GMT.
[Saint]
Elaphe:
Nice. Thanx a lot.
saratoga:
Off topic, but I always wondered why the WPS syntax is so sparse? Does it really save that much memory to use (random example) %xl() instead of something like %preLoadImage() ?
Navigation
[0] Message Index
Go to full version