Support and General Use > Theming and Appearance Customization
Viewport background colors with backdrop
(1/1)
Carson Dyle:
I notice that viewport background colors only appear when a backdrop isn't loaded in the WPS. Is that the expected behavior? This is in the simulator for the Sansa Fuze v2.
Also... the following is from the electricbarsofcolour theme for the Sansa Fuze v2:
%X(backdrop.bmp)0%|0%|
I haven't been able to find any documentation of this construct, with the stuff following the ending parenthesis. What exactly does it do?
[Saint]:
--- Quote ---I notice that viewport background colors only appear when a backdrop isn't loaded in the WPS. Is that the expected behavior? This is in the simulator for the Sansa Fuze v2.
--- End quote ---
Yes, this is expected behaviour.
[St.]
Carson Dyle:
What's the logic behind the behavior?
I thought I would paint a background color for an area on the WPS without involving an image. But now that I think about it... With the way small text is butted against the top edge of a viewport, it wouldn't look very good. Probably the better way to display a background is to either place it in the backdrop or else use two viewports with different coordinates - one for the background image and one for the text.
pixelma:
--- Quote from: Carson Dyle on December 11, 2010, 10:52:19 PM ---Also... the following is from the electricbarsofcolour theme for the Sansa Fuze v2:
%X(backdrop.bmp)0%|0%|
I haven't been able to find any documentation of this construct, with the stuff following the ending parenthesis. What exactly does it do?
--- End quote ---
This just looks like an error after an automatic update of the theme to the new syntax which stems from the fact that the backdrop tag was used wrongly before.
The old syntax looked like the following:
--- Code: ---%X|backdrop.bmp|
--- End code ---
But you could find some cases where people added the coordinates like for other image tags (for the top left corner) and used something like:
--- Code: ---%X|backdrop.bmp|0|0|
--- End code ---
The automatic skinupdater knows that it only needs the filename as parameter to put into () and doesn't know what to do with the "0|0|" as it shouldn't belong to the backdrop tag. It "assumes" that this is a line you wanted to display literally.
I'm not sure what exactly this will cause. If the parser doesn't allow anything else on the line with the backdrop then you won't see anything. If it allows something, you could possibly find a "0|0|" somewhere on the screen, presumably at the top as usually the %X line is one of the first or maybe it is covered by some other viewport.
JdGordon:
--- Quote from: Carson Dyle on December 11, 2010, 11:31:36 PM ---What's the logic behind the behavior?
I thought I would paint a background color for an area on the WPS without involving an image. But now that I think about it... With the way small text is butted against the top edge of a viewport, it wouldn't look very good. Probably the better way to display a background is to either place it in the backdrop or else use two viewports with different coordinates - one for the background image and one for the text.
--- End quote ---
There really isnt much logic behind this behaviour. We had a small discussion about changing it recently (i.e in the last few months) but nothing really came out of it, noone has done the work to "fix" it.
Navigation
[0] Message Index
Go to full version