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
| | |-+  Subline question
« previous next »
  • Print
Pages: [1]

Author Topic: Subline question  (Read 1849 times)

Offline antigen

  • Member
  • *
  • Posts: 3
Subline question
« on: March 17, 2008, 06:29:57 AM »
Hi,

I only found out about Rockbox a couple days ago and have already started trying to customize myself a theme.

A quick question:

I want to display the current position in the song and time remaining in the song on the same line and have it so they are both set out a different distance from the left margin.  Is there any way, using sublines and left alignment, to display both continually (i.e. not alternating)?

I want it so that if the time reaches 10:00 on either readout, their orientation with respect to the left side of the screen does not change.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Subline question
« Reply #1 on: March 17, 2008, 12:24:47 PM »
Would it work for you to use the align right and align center codes for the 2 pieces of information?
Logged

Offline antigen

  • Member
  • *
  • Posts: 3
Re: Subline question
« Reply #2 on: March 17, 2008, 04:28:38 PM »
It would work, but I was hoping to have the info inset from the sides of the screen a little.

This code gives me the correct positioning:

%m|14|%al%pc;%m|135|%al-%pr

It's just that the second subline defaults to alternating every 2 seconds.

Does anyone know how to display the second subline continually?
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Subline question
« Reply #3 on: March 17, 2008, 04:35:44 PM »
Quote from: antigen on March 17, 2008, 04:28:38 PM
It's just that the second subline defaults to alternating every 2 seconds.

Does anyone know how to display the second subline continually?

I think the point of sublines is that they alternate.  If you lose the semi-colon it should do what you want.

Edit: or maybe you can't have two left margin tags on the same line?
« Last Edit: March 17, 2008, 04:37:29 PM by MarcGuay »
Logged

Offline antigen

  • Member
  • *
  • Posts: 3
Re: Subline question
« Reply #4 on: March 17, 2008, 04:59:09 PM »
Quote from: MarcGuay on March 17, 2008, 04:35:44 PM
I think the point of sublines is that they alternate.  If you lose the semi-colon it should do what you want.

Edit: or maybe you can't have two left margin tags on the same line?

Yeah seems like it.

Anyway, I just figured out a way to do it.  What I did was inset the current position of the song from the left using left align and then user right align on the other.  To get the text on the right to come out from the right margin I added a couple of spaces after the code in that line.

It now looks like this (highlight to see spaces):

%m|13|%al%pc%ar-%pr    


Thanks guys.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Subline question
« Reply #5 on: March 18, 2008, 01:25:54 PM »
That's exactly what I have done in the past, given the one align-from-x per line limitation.  It's a kludge, but it works.  (And at times, I think that life is one big kludge anyway ...)
Logged

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

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

Page created in 0.072 seconds with 14 queries.