Support and General Use > Theming and Appearance Customization
Peak meter in WPS blues/glitch (when used with graphics conditionals)--help?
(1/1)
Mikerman:
I was playing around with adapting a WPS over the weekend and got it in good shape, in adding at the top of the WPS a "command center" line showing, graphically via conditionals, the volume level, shuffle & replay state, play state (off, play, pause, ff, rew), hold state, AC power state, and battery state. Â But then I came up with a conflict: Â
It appears that when I put in a peakmeter (%pm) at the bottom of the WPS, the peakmeter interferes with the above conditionals and those graphics flicker terribly. Â (I verified this by eliminating the peakmeter line--everything then works fine.) Â As originally written, the WPS code had the line for the peakmeter before all the command center conditionals lines. Â I was able to stop the flickering by putting the peakmeter line as the last line of the WPS code, after the command center conditional lines, but then the peakmeter is nowhere to be found on the screen. Â (My original hunch had been that the command center conditional lines had "bumped" the peakmeter off the screen. Â But I experimented and put the peakmeter line after the first of the command center conditional lines, and got the same result--no peakmeter to be found.)
Is there some trick in trying to handle the addition of the peakmeter here? Â Or is the peakmeter simply at odds with conditionals of the type noted above?
I note that this same set-up worked fine, including the peakmeter, when I used the Rockbox status line instead of the command center graphics and conditionals.
On an iRiver H140.
Thanks for any suggestions--I'd like to avoid choosing one or the other of the features (the entire reason I went to the effort to develop the new WPS).
Â
NicolasP:
What target are you working on ?
This could be an issue with the WPS code... could you send me your WPS so I can see the problem for myself and hopefully solve it ?
Mikerman:
As noted above, iRiver H140.
And that's very generous of you (please don't make fun of me too much as you look through the code!--and keep in mind that I'm still working on it and so have some # lines and the like).
Sent to your regular (nonRockbox) email--
Mikerman:
OK, and I swear:
I went into this WPS today, and changed the images somewhat: inverting the colors (black and white) in the graphics that go into the "command center" line, and inverting the color of the line itself (before, a solid black bar upon which graphics drawn in white would appear). I made no changes to the code itself.
And now, the flickering that plagued the WPS when the peakmeter was used is gone.
:o
Apparently, something in the amount of black used in the earlier design conflicted with the use of the peakmeter. And I repeat:
:o
Navigation
[0] Message Index
Go to full version