Support and General Use > Theming and Appearance Customization

Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.

(1/1)

OldiesButGoodies:
I know this is an old bug, where if you have a VU meter displayed it corrupts the scrolling. But today I downloaded some of the new themes for Sansa C200 formats and tried them. The new ones with the VU meter have scrolling working just fine!

Can some pro theme designer look over this to see why scrolling isn't working? It's a modified version of the original Nature theme. I wanted date and time and other stuff showing. As well as album art displayed when locked. Everything works fine, all except for long titles and album/artist names being stationary, truncated off the edge of the screen.


--- Code: ---%wd
%X|wpsbackdrop-132x80x16.bmp|
%xl|A|lock-132x80x16.bmp|125|1|2|
%xl|B|battery-132x80x16.bmp|1|1|16|
%xl|C|volume-132x80x16.bmp|66|3|26|
%xl|D|shuffle-132x80x16.bmp|43|1|
%xl|E|repeat-132x80x16.bmp|23|1|4|
%xl|F|playmode-132x80x16.bmp|2|60|5|
%Cl|38|6|||
%pb|pb-132x80x16.bmp|12|63|118|5|
%?C<%?mh<%C%Vda|%Vdb>|%Vdb>

#Images
%?mh<%xdAa|%xdAb>
%?bp<%?bc<%xdBa|%xdBb>|%?bl<|%xdBc|%xdBd|%xdBe|%xdBf|%xdBg|%xdBh|%xdBi|%xdBj|%xdBk|%xdBl|%xdBm|%xdBn|%xdBo|%xdBp>>
%?pv<%xdCa|%xdCb|%xdCc|%xdCd|%xdCe|%xdCf|%xdCg|%xdCh|%xdCi|%xdCj|%xdCk|%xdCl|%xdCm|%xdCn|%xdCo|%xdCp|%xdCq|%xdCr|%xdCs|%xdCt|%xdCu|%xdCv|%xdCw|%xdCx|%xdCy|%xdCz>
%?ps<%xdD>
%?mm<|%xdEa|%xdEb|%xdEc|%xdEd>
%?mp<%xdFa|%xdFb|%xdFc|%xdFd|%xdFe>

#NowPlaying
%Vl|b|0|9|-|51|1|-|-|
%s%ac%?in<%in.> %?it<%it|%fn>
%t5%s%ac%?ia<%ia|%?d2<%d2|...>>;%t5%s%ac%?id<%id|%?d1<%d1|...>>
%t0.5 %?mp<%al %fc/%fbkb %ar-:--/-:-- |%al %fc/%fbkb%ar%pc/%pt |%al %fc/%fbkb%ar%pc/%pt |%al %fc/%fbkb%ar%pc/%pt |%al Seeking%ar%pc/%pt >;%t0.5 %?mp<%al %fc/%fbkb %ar-:--/-:-- |%al %fc/%fbkb%ar%pc/%pt |%al %fc/%fbkb           |%al %fc/%fbkb%ar%pc/%pt |%al Seeking%ar%pc/%pt >
%s%acNext: %?It<%It|%?Fn<%Fn|?>>
%ac%ca.%cy/%cm/%cd  %cl:%cM:%cS %cp
%Vl|c|0|70|-|10|1|-|-|
%V|0|70|132|10|1|007788|000000|
%pm

--- End code ---

karashata:
I can't test the theme myself (don't own a c200 and no access to a computer I can run the sim on), but I do see one line that looks unnecessary (though I don't think it would break scrolling). In the following block:

--- Code: ---%ac%ca.%cy/%cm/%cd  %cl:%cM:%cS %cp
%Vl|c|0|70|-|10|1|-|-|
%V|0|70|132|10|1|007788|000000|
%pm
--- End code ---
I believe the line "%Vl|c|0|70|-|10|1|-|-|" doesn't get used, so you might be able to remove it for clean-up purposes. I also notice that there is no viewport "a" loaded (though apparently you don't need it since it would only be loading a viewport to display the album art, which is instead being displayed on the default viewport).

If I were to clean this up I would move the line calling to display the album art into a viewport "a" (whatever size and positioning necessary) and remove the unnecessary loading of viewport "c" since it's never used. Basically, the code would look like this (swapping the "unknown" values in the size of the viewport "a" for the dimensions of your album art):

--- Code: ---%wd
%X|wpsbackdrop-132x80x16.bmp|
%xl|A|lock-132x80x16.bmp|125|1|2|
%xl|B|battery-132x80x16.bmp|1|1|16|
%xl|C|volume-132x80x16.bmp|66|3|26|
%xl|D|shuffle-132x80x16.bmp|43|1|
%xl|E|repeat-132x80x16.bmp|23|1|4|
%xl|F|playmode-132x80x16.bmp|2|60|5|
%Cl|0|0|||
%pb|pb-132x80x16.bmp|12|63|118|5|
%?C<%?mh<%Vda|%Vdb>|%Vdb>

#Images
%?mh<%xdAa|%xdAb>
%?bp<%?bc<%xdBa|%xdBb>|%?bl<|%xdBc|%xdBd|%xdBe|%xdBf|%xdBg|%xdBh|%xdBi|%xdBj|%xdBk|%xdBl|%xdBm|%xdBn|%xdBo|%xdBp>>
%?pv<%xdCa|%xdCb|%xdCc|%xdCd|%xdCe|%xdCf|%xdCg|%xdCh|%xdCi|%xdCj|%xdCk|%xdCl|%xdCm|%xdCn|%xdCo|%xdCp|%xdCq|%xdCr|%xdCs|%xdCt|%xdCu|%xdCv|%xdCw|%xdCx|%xdCy|%xdCz>
%?ps<%xdD>
%?mm<|%xdEa|%xdEb|%xdEc|%xdEd>
%?mp<%xdFa|%xdFb|%xdFc|%xdFd|%xdFe>

#NowPlaying
%Vl|a|38|6|unknown|unknown|-|-|
%C
%Vl|b|0|9|-|51|1|-|-|
%s%ac%?in<%in.> %?it<%it|%fn>
%t5%s%ac%?ia<%ia|%?d2<%d2|...>>;%t5%s%ac%?id<%id|%?d1<%d1|...>>
%t0.5 %?mp<%al %fc/%fbkb %ar-:--/-:-- |%al %fc/%fbkb%ar%pc/%pt |%al %fc/%fbkb%ar%pc/%pt |%al %fc/%fbkb%ar%pc/%pt |%al Seeking%ar%pc/%pt >;%t0.5 %?mp<%al %fc/%fbkb %ar-:--/-:-- |%al %fc/%fbkb%ar%pc/%pt |%al %fc/%fbkb           |%al %fc/%fbkb%ar%pc/%pt |%al Seeking%ar%pc/%pt >
%s%acNext: %?It<%It|%?Fn<%Fn|?>>
%ac%ca.%cy/%cm/%cd  %cl:%cM:%cS %cp
%V|0|70|132|10|1|007788|000000|
%pm
--- End code ---
I don't know if that will fix your scrolling problem, but it looks a little cleaner at least.

OldiesButGoodies:
Thanks for looking at it and trying. I know how hard it is by just looking at the code and not being able to test it.

Unfortunately, it doesn't work. It breaks the theme completely. None of the graphics for the theme get loaded, there's no VU meter anymore, and the cover-art doesn't show when I set the lock switch.

But hey, the scrolling works again! (because the VU meter is no longer showing)

Anyway, thanks.

audio-i:
Like karashata said, part of the viewport definition here doesn't make much sense, since it loads an empty conditional viewport that is never displayed (viewport c), and it has a command to display conditional viewport a, which is never loaded.

But regardless of that, I do believe that the problem is that viewports are only defined for text displaying, but images are not "contained" in a specific and "confined" viewport, which may interfere with text displaying (in this case scrolling), even if the image displaying is conditional. I can't try it myself neither, but I'd try putting images in a well defined viewport, specially in this case playmode and album art, handling AA viewport conditionally. Hope you can make it work

OldiesButGoodies:
I now recall that viewport C was defined because that was a suggested workaround to get scrolling to work again, that it sometimes helped. By putting the peak meter (VU meter) in a viewport. Neither way helped to enable horizontal scrolling, so I left that viewport intact so I could at least change the colors displayed for the peak-meter to match the rest of my custom theme.

I made rainbow colored graphics (with 3D gradients) for the progress bar and volume control and tweaked their positions so that when album art is overlaid on top of the theme the art doesn't overlap anything in a weird way. I don't want to give up this theme, it's my favorite of all (even compared to the newest ones submitted). The only thing busted is that any long text won't scroll. It's not a very big deal. I just couldn't figure out why on the new themes that have been uploaded, those with a peak-meter running, all the text on those scrolls horizontally just fine.

Would be nice if I could get this one to work like all the new themes, but if not, I'll keep living with it I guess. Breaking it to make the scrolling work like it should wouldn't be worth it.

I'd share the whole theme but I was told that I'm not allowed to because I'm using components from someone else, only tweaked much nicer than the original.

Navigation

[0] Message Index

Go to full version