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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Theme Design and Screen Layouts
« previous next »
  • Print
Pages: [1]

Author Topic: Theme Design and Screen Layouts  (Read 1045 times)

Offline Avalon

  • Member
  • *
  • Posts: 88
Theme Design and Screen Layouts
« on: October 01, 2010, 08:49:10 AM »
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?



Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Theme Design and Screen Layouts
« Reply #1 on: October 03, 2010, 12:51:43 AM »
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)
Logged


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

Offline Avalon

  • Member
  • *
  • Posts: 88
Re: Theme Design and Screen Layouts
« Reply #2 on: October 04, 2010, 04:46:09 AM »
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. 
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Theme Design and Screen Layouts
« Reply #3 on: October 04, 2010, 05:01:46 AM »
for some reason you need to put a blank line in each viewport (minor bug), maybe that is your problem?
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
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Theme Design and Screen Layouts
 

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

Page created in 0.063 seconds with 15 queries.