Bugzilla – Bug 12124
slider styles cannot be described within a window style
Last modified: 2009-11-10 07:52:04 UTC
I'd like to embed 100% of the styles for the NP window within the s.nowplaying window style 'nowplaying'. The two sliders on the NP window npprogressB and npvolumeB cannot be described within the window style this does not work: s.nowplaying = { npprogressB = { w = 193, h = 25, padding = { 0, 0, 0, 18 }, position = LAYOUT_SOUTH, horizontal = 1, bgImg = _songProgressBackground, img = _songProgressBar, }, npvolumeB = { w = volumeBarWidth, border = { 5, 3, 5, 0 }, position = LAYOUT_SOUTH, horizontal = 1, bgImg = _volumeSliderBackground, img = _volumeSliderBar, }, } this does work: s.npprogressB = { w = 193, h = 25, padding = { 0, 0, 0, 18 }, position = LAYOUT_SOUTH, horizontal = 1, bgImg = _songProgressBackground, img = _songProgressBar, } s.npvolumeB = { w = volumeBarWidth, border = { 5, 3, 5, 0 }, position = LAYOUT_SOUTH, horizontal = 1, bgImg = _volumeSliderBackground, img = _volumeSliderBar, }
Marking P2 for now.
this is an administrative shuffle on priority fields to help make better judgment on the top end of the priority list. P4->P5, P3->P4, and P2->P3.
Ben, is this useful for 7.5, or later?
I don't think it should be necessary to define a slider style globally, but it's probably not going to hold anything up for 7.5.0
with the addition of new NP views this bug is a 7.5 P1
sorry, this was user error on my part. you can define sliders within a window style, but if the slider is a component of a group widget, you need to make sure that the slider style is inside the group block. For example, npprogressB needs to be within the npprogress group: s.nowplaying = { ... npprogress = { x = 0, y = 200, ... npprogressB = { w = 293, h = 25, padding = { 0, 0, 0, 18 }, position = LAYOUT_SOUTH, horizontal = 1, bgImg = _songProgressBackground, img = _songProgressBar, }, }, }