Support and General Use > Theming and Appearance Customization

question about wrapping text

(1/3) > >>

vermillion1:
Does anyone know if there is a way to make text wrap instead of scroll for the filename?  I have a number of files with long names and the scrolling that all the themes do makes it way too slow to switch between songs without waiting to hear what they are or for it to scroll, for instance when many filenames have the same prefix in the name that doesn't fit on the screen, so until it scrolls awhile you can't tell what it is at all.

This may not matter to most people but I use my X5 a lot while biking and use the remote, so I use a larger font size than default to make it easy to read, but then not much text fits on the screen before scrolling.  I'd like to make a theme where I can devote maybe 2 or 3 lines on the screen just to the filename so if it has a long name I can see the entire name at once without waiting for the scroll, which can be impractical on a bike since I want to keep my eyes on the road aside from quick glances.

Anyway, does anyone know if this is possible in themes presently?  If there isn't a way to do this in the theme config does anyone think this might be easy to patch into the rockbox code to support?  I may try to do it myself if necessary but I haven't examined the code too closely yet so maybe one of you has an idea where to start with this.

Thanks.

bluebrother:

--- Quote from: vermillion1 on October 30, 2006, 12:53:06 PM ---Does anyone know if there is a way to make text wrap instead of scroll for the filename?
--- End quote ---
Currently there is no way that I know of.


--- Quote ---I'd like to make a theme where I can devote maybe 2 or 3 lines on the screen just to the filename so if it has a long name I can see the entire name at once without waiting for the scroll, which can be impractical on a bike since I want to keep my eyes on the road aside from quick glances.
--- End quote ---
you can filename and the last three parts of the path separately with wps tags. So it should be fairly easy making a wps that shows the filename in one line, the last folder from the path in the next and even two more hierarchies.

Yotto:
Sadly, the "Right Justify" tag doesn't continue to justify right when the line is longer than the screen is wide.  This:


--- Code: ---                | |
Really Long Band|Name - Really Long Song Name|
                | |

--- End code ---

Would be better than this: (What is current)


--- Code: ---| |
|Really Long Band Name - |Really Long Song Name
| |

--- End code ---

Note, if you had your id3 tags set up, you could get the Artist and title tags seperately and put them on their own lines.

vermillion1:
I suspected this would be the case.  Does anyone know where in the rockbox source the parameters used as keywords in the wps files are initialized?  I'd like to try making a patch to support multiple filename keys (fn1,2,3 or fm1,2,3) for a custom wps that has that many lines allocated.  I tried briefly grepping through the source, however I haven't found so far where these parameters are created.  I'll spend some more time looking but does anyone know offhand where in the rockbox source this mechanism is?

Yotto:
(I know nothing about coding Rockbox)

Were I to tackle this, I'd start by looking at one of the patches that modify these tags, like the Album Art or Scrolling Margins patches.  They'll only have the code they need, so you can zero in on the area you're looking for much quicker.

Navigation

[0] Message Index

[#] Next page

Go to full version