Bug 13416 - Track title text should have a MAX and MIN length based on the length of X of Y
: Track title text should have a MAX and MIN length based on the length of X of Y
Status: CLOSED FIXED
Product: SB Radio
Classification: Unclassified
Component: Now Playing/Audio controls
: Include FW version in comment
: PC Windows Vista
: P1 enhancement (vote)
: 7.4.0
Assigned To: Ben Klaas
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-14 15:53 UTC by ndijulio
Modified: 2009-10-05 14:30 UTC (History)
4 users (show)

See Also:
Category: Task


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ndijulio 2009-08-14 15:53:42 UTC
For areas of the Now Playing screen where there is "X of Y" in the same line as the track title the track title cut-off should expand and contract based on a MAX and MIN character set of the "X of Y."

The current behavior is based on the MAX character set only of "X of Y" in all cases.  The result is that the track title is cut-off unnecessarily for small playlist sizes.

If this is not possible we will need to rethink the implementation slightly.
Comment 1 Ben Klaas 2009-08-17 20:32:13 UTC
Noah, odds are this is not going to be possible. The skinning code is not that sophisticated...let's talk on this later in the week.
Comment 2 Ben Klaas 2009-08-29 21:30:39 UTC
My plan is to shrink the font size when the x/y gets more than 4 numeric chars

on Baby
width of x/y label: 50px
font size for 99/99: 14pt
font size for 99/100: 10pt

10pt with a 50px width will also accomodate 6 numbers e.g., 222/222 without scrolling. After it grows beyond that it will scroll, but I believe this is the best I can do within the current constraints. IMO it will work pretty well.

I'll also work this up for controller to an acceptable solution. Width and font sizes may be slightly different for that screen.
Comment 3 SVN Bot 2009-08-29 22:05:13 UTC
 == Auto-comment from SVN commit #7328 to the jive repo by bklaas ==
 == https://svn.slimdevices.com/jive?view=revision&revision=7328 ==

Fixed Bug: 11792
Fixed Bug: 13416
Description: 
X/Y area fixed to 48px on QVGA skins; font size now shrinks from 14 to 10pt when string len > 5
Elapsed/Remain now shrinks to better fit when string len > 5, including on Fab4 skins
allow soft power off home menu item on desktop SP
Comment 4 ndijulio 2009-08-31 12:15:30 UTC
Ben- Where did the decision to scroll the X of Y info stem from?  My intuition says this might be too much of a good thing, however, I will wait to reserve judgment until seeing this behavior on device.  My concern is the potential for 2 text strings to be scrolling on one line.  This could be appeased through timing and not having both scrolling at the same time.

For MIN playlists of less than 10 can we also add a zero for 00-09?  This will help the padding to not appear as "large" when the track title is long and X of Y small.

ex. - 09/10

Please note the recommended MIN font sizes are:

FreeSans Bold - 10px
FreeSans Med. - 12px
Comment 5 James Richardson 2009-10-05 14:30:31 UTC
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server!
    * SqueezeCenter: 28672
    * Squeezebox 2 and 3: 130
    * Transporter: 80
    * Receiver: 65
    * Boom: 50
    * Controller: 7790
    * Radio: 7790  

Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.