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
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Scrolling margins
« previous next »
  • Print
Pages: [1]

Author Topic: Scrolling margins  (Read 1741 times)

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Scrolling margins
« on: May 22, 2008, 08:33:22 AM »
I'm trying to create my own WPS and am now facing minor complications regarding scrolling margins. For now, scrolling margins can be implemented to let a text in one line start scrolling from a specific point which is defined by %s%m |x|, if i got that right. But that point is atuomatically aligned on the left. I want to know if there is a way of implementing a scrolling margin on the right. And the best would be if there was a modifictation to %s%m command which modifies from where to where a text scrolls.
like this %s%m|x|y|
For example %s%m|32|64| this text scrolls bewtween 32 and 64
results in:                                #32#this text scrolls between 32 a#64#
i hope you understand what i'm trying to get through to you.
« Last Edit: May 05, 2009, 06:51:16 AM by BdN3504 »
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Scolling margins
« Reply #1 on: May 22, 2008, 08:44:25 AM »
Sounds like a job for viewports.  See the CustomWPS wiki page.
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: Scolling margins
« Reply #2 on: May 22, 2008, 03:25:59 PM »
Ok, thanks, viewports helped indeed.
I got a question concerning viewports now. Is it possible to put a viewport containing the progress bar above another one, which contains an image of an "empty" progress bar, so that the full one overlaps the empty bar? Because in the cabbiev2 theme for example the "empty" progress bar is simply drawn onto the background.
« Last Edit: May 22, 2008, 03:55:23 PM by BdN3504 »
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Scolling margins
« Reply #3 on: May 22, 2008, 03:38:03 PM »
Viewports can't overlap/be layered.  Why not just include it in the background the same way it's done in the default theme?  And by statusbar do you mean the progress bar?
« Last Edit: May 22, 2008, 03:44:41 PM by MarcGuay »
Logged

Offline Arwym

  • Member
  • *
  • Posts: 12
Re: Scolling margins
« Reply #4 on: May 23, 2008, 12:39:26 AM »
Since I was looking for the same help, I would like to ask in this same thread (I hope you don't mind) something about the viewports.  I am not sure I understood what the wiki says about them very well: can the viewports be transparent?  I don't want to apply any colors to them, because what I am looking for is a way to set a margin between two elements.

Also, something about %m...  Is there really any reason why this can only be used for the left?  I think there should be something like %m|top|right|bottom|left.  Think of how 'margin' works in CSS.
Logged
Device: Sandisk Sansa e260

(Waiting for Meizu M6 to get 'Rockbox'ed' in the future!)

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Scolling margins
« Reply #5 on: May 24, 2008, 09:31:04 AM »
If your WPS has a background, the viewport will not display a background colour, though the foreground colour will still be set to whatever you put in the WPS for it.

The left margin was put in as a temporary workaround for people to be able to use album art and put text beside it, the devs didn't want to put any more margin support in beyond that because viewports was being worked on at the time.  You can accomplish the same thing with a viewport as you could with something like "%m|top|right|bottom|left|".  Just remember that you have to declare a foreground and background colour for colour targets for the viewport to work.  If you don't want to use different colours from the rest of the theme, just use the same colours as you put in the theme's config file.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline Arwym

  • Member
  • *
  • Posts: 12
Re: Scolling margins
« Reply #6 on: May 24, 2008, 11:52:52 AM »
Thank you, Karashata.  ^_^  That's all I needed to know.
Logged
Device: Sandisk Sansa e260

(Waiting for Meizu M6 to get 'Rockbox'ed' in the future!)

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Scrolling margins
 

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

Page created in 0.083 seconds with 15 queries.