Rockbox Development > Feature Ideas

Theme Design and Screen Layouts

(1/1)

Avalon:
I really like the flexibility of theme design in RockBox and have writen a couple of themes.

I would like an addition to the SBS code to allow theme writers a little more flexibility in combining theme design with the existing standard screen information.

The existing SBS instructions appear to allow one %Vi definition which is applied to all screens.

I suggest modifying the following instructions to allow %Vi definitions within the %?cs conditional:

%Vi('label',x,y,[width],[height],[font])

%?cs<Main menu|WPS|Recording screen|FM Radio screen|Playlist screen>

SUGGESTED NEW:  %?cs<%Vi(...)|%Vi(...)|%Vi(...)|%Vi(...)|%Vi(...)>

This would allow theme writers to define the user information area size and placement for each screen type.  Theme graphics and information could then make better use of the screen and existing standard information.

I anticipate that the screen width for UI in many existing screens assumes full width access.  If this is the case, then the above suggestion with just UI height and location control on a screen basis would be very useful.

Does anyone have any comments or alternate suggestions?



JdGordon:
the sbs allows as many %Vi viewports as you want, you need to use %VI (i think) to enable the one you want.

what you are suggesting is not going to happen because it would need a big rewrtie of how the skin is parsed (which isnt goig to happen)

Avalon:
Thank you for the suggestion.

I have tried that approach with no success.

I defined several viewports using %Vi and then conditionally selected based on screen using %VI imbedded in %?cs.

I could not get that to work.  The only viewport that was recognized  was the first one selected using %VI in the %?cs for main menu.  That viewport seemed to be used in all screens. 

JdGordon:
for some reason you need to put a blank line in each viewport (minor bug), maybe that is your problem?

Navigation

[0] Message Index

Go to full version