Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.
« previous next »
  • Print
Pages: [1]

Author Topic: Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.  (Read 1266 times)

Offline OldiesButGoodies

  • Member
  • *
  • Posts: 15
Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.
« on: August 21, 2009, 02:47:50 PM »
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: [Select]
%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
« Last Edit: August 21, 2009, 02:50:28 PM by OldiesButGoodies »
Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.
« Reply #1 on: August 21, 2009, 04:05:13 PM »
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: [Select]
%ac%ca.%cy/%cm/%cd  %cl:%cM:%cS %cp
%Vl|c|0|70|-|10|1|-|-|
%V|0|70|132|10|1|007788|000000|
%pm
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: [Select]
%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
I don't know if that will fix your scrolling problem, but it looks a little cleaner at least.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline OldiesButGoodies

  • Member
  • *
  • Posts: 15
Re: Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.
« Reply #2 on: August 21, 2009, 04:49:26 PM »
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.

Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.
« Reply #3 on: August 21, 2009, 05:23:55 PM »
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
« Last Edit: August 21, 2009, 09:11:40 PM by audio-i »
Logged

Offline OldiesButGoodies

  • Member
  • *
  • Posts: 15
Re: Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.
« Reply #4 on: August 22, 2009, 08:51:40 AM »
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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Help! Can't get scrolling to work. Sansa C200 theme-maker's input needed.
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.078 seconds with 15 queries.