Bug 5663 - cmdlink behaves different in Nokia770 skin
: cmdlink behaves different in Nokia770 skin
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Skins
: 7.0
: PC Other
: P2 minor (vote)
: ---
Assigned To: KDF
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-04 11:47 UTC by Erland Isaksson
Modified: 2008-12-18 11:12 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erland Isaksson 2007-10-04 11:47:26 UTC
The "cmdlink" wrapper behaves differently in the Nokia770 skin compared to the other skins.
The result is that you can't use the cmdlink wrapper in a HTML template to make the HTML template independent on skins.

For example this causes problem with the mixer buttons, where it would be possible to do:
[% WRAPPER cmdlink cmdimage='b_mmmix' cmdtitle='MUSICMAGIC_MIX' %]....[% END %]

But to make this work in the Nokia770 skin you will need a specific HTML template for Nokia770 that instead contains:
[% WRAPPER cmdlink cmdimage='b_mmmix.gif' cmdtitle='MUSICMAGIC_MIX' %]....[% END %]

The difference is that most skins seems to add .gif to the cmdimage parameter besides the Nokia770 which doesn't add .gif and instead requires the user to specify .gif in the parameter value.

I've only verified the problem with my own plugins, but I strongly suspect that the MusicMagic plugin will display its mixer buttons as text instead of an image in the Nokia skin as the cmdlink wrapper works now.

The cmdlink wrapper is defined in:
server/HTML/Nokia770/cmdwrappers
Comment 1 KDF 2007-10-04 14:10:55 UTC
The intent there was to make it simple for images, but the new default is tending toward use of .png types.  This may be something that is expected to increase so it may be wiser to rework cmdlink to require the extension as well.  

Michael, so far Default uses gifs for cmd links, but are you preferring .png; are you expecting to move in that direction?

I can easily make a patch either way, just say the word.
Comment 2 Michael Herger 2007-10-04 14:26:17 UTC
I'm utterly confused, really: the endings have changed three times within a week. Didn't you (kdf) some changes which resultet in using .jpg? I then changed to .png. And Ben moved today/yesterday to .gif...  I decided not to touch this any more as long as Ben is working on getting transparent GIFs fixed.

I would love to use PNGs, but there's one reason not to do so... Default uses tons of graphics, and Scott has to render them in whatever color will be chosen.

Though I would have ignored the IE6 uers in the case of artwork.

It probably makes sense to leave the choice to the skins, as different skins are optimized for different targets. Handheld's target Pocket IE very likely doesn't support .pnt neither.
Comment 3 KDF 2007-10-04 14:36:21 UTC
Michael, this isn't cover art.

This is the images for add, play, mix, delete etc. I'll do a patch to require skins to supply full filename :)
Comment 4 KDF 2007-10-04 14:50:40 UTC
fixed in trunk at change 13553.  please reopen if there are issues.
Comment 5 KDF 2007-10-04 15:44:42 UTC
missed a conversion in Default skin, fixed at change 13558
Comment 6 Chris Owens 2008-03-07 09:05:08 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.