Author: bklaas
Date: Tue Oct 21 09:14:41 2008
New Revision: 3171

URL: http://svn.slimdevices.com?rev=3171&root=Jive&view=rev
Log:
Bug: 9680
Description: toggle image of play and pause icons depending on player's current 
mode

Modified:
    
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
    
7.3/trunk/squeezeplay/src/squeezeplay_desktop/share/applets/FullscreenSkin/FullscreenSkinApplet.lua

Modified: 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua?rev=3171&root=Jive&r1=3170&r2=3171&view=diff
==============================================================================
--- 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
 (original)
+++ 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
 Tue Oct 21 09:14:41 2008
@@ -206,7 +206,7 @@
                return
        end
 
-       log:debug("Player mode has been changed to: ", mode)
+       log:warn("Player mode has been changed to: ", mode)
        self:_updateMode(mode)
 end
 
@@ -387,6 +387,14 @@
        end
        if ws.titleGroup then
                ws.titleGroup:setWidgetValue("text", 
self:string(modeTokens[token]))
+       end
+       if ws.controlsGroup then
+               local playIcon = ws.controlsGroup:getWidget('play')
+               if token == 'play' then
+                       playIcon:setStyle('pause')
+               else
+                       playIcon:setStyle('play')
+               end
        end
 end
 

Modified: 
7.3/trunk/squeezeplay/src/squeezeplay_desktop/share/applets/FullscreenSkin/FullscreenSkinApplet.lua
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay_desktop/share/applets/FullscreenSkin/FullscreenSkinApplet.lua?rev=3171&root=Jive&r1=3170&r2=3171&view=diff
==============================================================================
--- 
7.3/trunk/squeezeplay/src/squeezeplay_desktop/share/applets/FullscreenSkin/FullscreenSkinApplet.lua
 (original)
+++ 
7.3/trunk/squeezeplay/src/squeezeplay_desktop/share/applets/FullscreenSkin/FullscreenSkinApplet.lua
 Tue Oct 21 09:14:41 2008
@@ -653,7 +653,6 @@
        s.iconAlarm.img = Surface:loadImage(imgpath .. 
"Alerts/popup_alarm_icon.png")
        s.iconAlarm.w = WH_FILL
        s.iconAlarm.align = "center"
-
 
        -- wireless icons for menus
        s.wirelessLevel1 = {}
@@ -1584,13 +1583,17 @@
        s.ssnpcontrols.play.align = 'center'
        s.ssnpcontrols.play.padding = 10
        s.ssnpcontrols.play.img = Surface:loadImage(imgpath .. 
"Screen_Formats/Player_Controls/Cyan/icon_toolbar_play_on.png")
-       s.ssnpcontrols.play.bgImg = selectionBox
+
+       s.ssnpcontrols.pause = {}
+       s.ssnpcontrols.pause.align = 'center'
+       s.ssnpcontrols.pause.padding = 10
+       s.ssnpcontrols.pause.img = Surface:loadImage(imgpath .. 
"Screen_Formats/Player_Controls/Cyan/icon_toolbar_pause_on.png")
+
 
        s.ssnpcontrols.fwd = {}
        s.ssnpcontrols.fwd.align = 'center'
        s.ssnpcontrols.fwd.padding = 10
        s.ssnpcontrols.fwd.img = Surface:loadImage(imgpath .. 
"Screen_Formats/Player_Controls/Cyan/icon_toolbar_ffwd_on.png")
-       s.ssnpcontrols.fwd.bgImg = selectionBox
 
        s.browsenpcontrols = _uses(s.ssnpcontrols)
 

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to