Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Viewport background colors with backdrop
« previous next »
  • Print
Pages: [1]

Author Topic: Viewport background colors with backdrop  (Read 1193 times)

Offline Carson Dyle

  • Member
  • *
  • Posts: 80
Viewport background colors with backdrop
« on: December 11, 2010, 10:52:19 PM »
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?
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Viewport background colors with backdrop
« Reply #1 on: December 11, 2010, 11:22:37 PM »
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.

Yes, this is expected behaviour.


[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Carson Dyle

  • Member
  • *
  • Posts: 80
Re: Viewport background colors with backdrop
« Reply #2 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.
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Viewport background colors with backdrop
« Reply #3 on: December 12, 2010, 03:27:57 AM »
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?

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: [Select]
%X|backdrop.bmp|
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: [Select]
%X|backdrop.bmp|0|0|
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.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Viewport background colors with backdrop
« Reply #4 on: December 12, 2010, 06:45:25 AM »
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.

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.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Viewport background colors with backdrop
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.084 seconds with 16 queries.