Author: bklaas
Date: Thu Jan 31 12:36:09 2008
New Revision: 1729
URL: http://svn.slimdevices.com?rev=1729&root=Jive&view=rev
Log:
Bug: 6841
Description: layout all progress bar elements from bottom of the screen
(LAYOUT_SOUTH)
this allows remote, non-padded, non-square images to not affect the layout of
the page
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua?rev=1729&root=Jive&r1=1728&r2=1729&view=diff
==============================================================================
---
branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
(original)
+++
branches/7.0/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
Thu Jan 31 12:36:09 2008
@@ -772,30 +772,42 @@
})
s.ssprogress = {}
+ s.ssprogress.position = LAYOUT_SOUTH
s.ssprogress.order = { "elapsed", "slider", "remain" }
s.ssprogress.text = {}
s.ssprogress.text.w = 50
- s.ssprogress.padding = { 0, 0, 0, 0 }
- s.ssprogress.text.padding = { 8, 0, 8, 0 }
+ s.ssprogress.padding = { 0, 0, 0, 5 }
+ s.ssprogress.text.padding = { 8, 0, 8, 5 }
s.ssprogress.text.font = Font:load(fontpath .. "FreeSansBold.ttf", 12)
s.ssprogress.text.fg = { 0xe7,0xe7, 0xe7 }
s.ssprogress.text.sh = { 0x37, 0x37, 0x37 }
-- browse has different positioning than ss windowStyle
- local browseprogress = {
- padding = { 0, 0, 0, 0 }
- }
- s.browseprogress = _uses(s.ssprogress)
+ s.browseprogress = _uses(s.ssprogress,
+ {
+ padding = { 0, 0, 0, 25 },
+ text = {
+ padding = { 8, 0, 8, 25 },
+ }
+ }
+ )
s.ssprogressB = {}
s.ssprogressB.horizontal = 1
s.ssprogressB.bgImg = progressBackground
s.ssprogressB.img = progressBar
-
- s.browseprogressB = _uses(s.ssprogressB)
+ s.ssprogressB.position = LAYOUT_SOUTH
+ s.ssprogressB.padding = { 0, 0, 0, 5 }
+
+ s.browseprogressB = _uses(s.ssprogressB,
+ {
+ padding = { 0, 0, 0, 25 }
+ }
+ )
-- special style for when there shouldn't be a progress bar (e.g.,
internet radio streams)
s.ssprogressNB = {}
+ s.ssprogressNB.position = LAYOUT_SOUTH
s.ssprogressNB.order = { "elapsed" }
s.ssprogressNB.text = {}
s.ssprogressNB.text.w = WH_FILL
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins