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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Im trying to edit a theme on Fuze
« previous next »
  • Print
Pages: [1] 2

Author Topic: Im trying to edit a theme on Fuze  (Read 3457 times)

Offline smartinez281

  • Member
  • *
  • Posts: 16
Im trying to edit a theme on Fuze
« on: February 03, 2010, 01:13:46 AM »
Hello. I am trying to edit the SpartanBlack theme on the Sansa Fuze, I am trying to have the album art stretch out to fill out a wider area. The enclosed image further explains what I mean.
What is in white, I want to be nothing but album art, and below it, the %t and %a info scrolling by.
I cant seem to get the parameters correct for stretching out the album art. Any advice?
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: Im trying to edit a theme on Fuze
« Reply #1 on: February 03, 2010, 02:32:37 AM »
I think the current way the art is handled is to automatically scale it to fit into the area provided for it, I don't know if there is an option to stretch it to fill the given space...

Checked the CustomWPS page and the AlbumArt page on the wiki and all I could find were alignment tags, nothing to stretch an image to fill the space. Looks like there's nothing you can do since the way it's handled is to scale it to fit into the space and align it to whatever position specified...

EDIT: apparently you can call the %C tag without a defined maxwidth and maxheight, which would disable the automatic resizing, however, I'm not sure you could still display an album art image the way you want to since it would have to be no higher than the height of the player's screen (so any square art would have space on either side of it), and you'd have to draw your text and images over it since you can't have it start drawing off screen (as far as I know anyway the WPS engine doesn't allow drawing off screen).
« Last Edit: February 03, 2010, 02:38:56 AM by karashata »
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline Ste-

  • Member
  • *
  • Posts: 76
Re: Im trying to edit a theme on Fuze
« Reply #2 on: February 03, 2010, 02:46:24 AM »
Not sure how it's done either but loking at some of the other themes that seem to have the same effect maybe check their code ?

Such as....
http://themes.rockbox.org/index.php?themeid=253&target=sansae200v2
Logged
Current Rocbox Devices: iAudio X5 240GB, Toshiba Gigabeat S240, iPod Classic 160GB, iPod Mini 2nd Gen 64GB, iRiver H360, Toshiba Gigabeat F40, iPod Video 30GB, Sansa e280v2, Sansa Fuzev2 8GB, Sansa Clip+ 8GB, Sansa Clip Zip 8GB, Sansa Fuze+ 4GB

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Im trying to edit a theme on Fuze
« Reply #3 on: February 03, 2010, 02:48:33 AM »
I imagine that theme maker is using specifically made album art images for his or her theme and an album art viewport shaped and sized for those images. I would suspect a square album art image would be centered in that viewport (unless the coder aligned it to one side or the other).
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Im trying to edit a theme on Fuze
« Reply #4 on: February 03, 2010, 05:45:49 PM »
Karashata is right about having to pre-format the album art images as the only way at the moment to give a "perfect" widescreen effect, otherwise the original AA image will be cropped (not shown) at the bottom. Something similar was discussed here: http://forums.rockbox.org/index.php?topic=23440.0
Logged

Offline smartinez281

  • Member
  • *
  • Posts: 16
Re: Im trying to edit a theme on Fuze
« Reply #5 on: February 04, 2010, 10:25:11 PM »
BUMP

Ok, I have the album art working fine now. Now Im trying to work out the time part.
When I have the album art showing, the clock does not show up
as this shows:

Npw, when I disable art, the clock shows up exactly where I want it
as this shows:


Any Ideas?
Im a newbie at coding lol
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: Im trying to edit a theme on Fuze
« Reply #6 on: February 04, 2010, 10:28:36 PM »
You'll have to adjust your cover art viewport to make extra space along the top of the screen for the clock and the other things you want to show up there, the way you have it right now your cover art is drawing over your clock.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline smartinez281

  • Member
  • *
  • Posts: 16
Re: Im trying to edit a theme on Fuze
« Reply #7 on: February 04, 2010, 10:30:13 PM »
Quote from: karashata on February 04, 2010, 10:28:36 PM
You'll have to adjust your cover art viewport to make extra space along the top of the screen for the clock and the other things you want to show up there, the way you have it right now your cover art is drawing over your clock.
No, no, I want the  clock to show up down at the bottom where it shows in the 2nd shot.
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: Im trying to edit a theme on Fuze
« Reply #8 on: February 04, 2010, 10:34:33 PM »
Ohh, I misunderstood... In that case, you'll need to make sure that the code for your clock is in its own viewport that's not specifically displayed only when there is no album art. (The code for the clock viewport should use a %V tag, not a %Vd tag)
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline smartinez281

  • Member
  • *
  • Posts: 16
Re: Im trying to edit a theme on Fuze
« Reply #9 on: February 04, 2010, 10:38:25 PM »
Well, Im not sure what Im doing wrong
Heres the code for the art
Code: [Select]
# AlbumArt VP
%Cl|0|0|||
#%Vl|a|50|13|124|124|0|-|-|
%C

here is the time code
Code: [Select]
# Time Text
%Vl|n|80|153|48|8|0|FFFFFF|000000|
%ar%cl:%cM %cP
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: Im trying to edit a theme on Fuze
« Reply #10 on: February 04, 2010, 10:48:54 PM »
Change the clock code to read as follows:
Code: [Select]
# Time Text
%V|80|153|48|8|0|FFFFFF|000000|
%ar%cl:%cM %cP
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline smartinez281

  • Member
  • *
  • Posts: 16
Re: Im trying to edit a theme on Fuze
« Reply #11 on: February 04, 2010, 10:55:57 PM »
Quote from: karashata on February 04, 2010, 10:48:54 PM
Change the clock code to read as follows:
Code: [Select]
# Time Text
%V|80|153|48|8|0|FFFFFF|000000|
%ar%cl:%cM %cP

O wow that worked
thanks!

so what does %Vl  and 'n' stand for?
I see you took out VL and added n
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: Im trying to edit a theme on Fuze
« Reply #12 on: February 04, 2010, 10:59:46 PM »
%Vl is the viewport load tag that gets used in conjunction with %Vd to display specific viewports under certain conditions. The n was just the viewport identifier (%Vl|n| loads viewport n, %Vdn would then display it).

Since you want your clock to always display it was unnecessary to use the %Vl tag and instead you should have just used the regular %V viewport tag to always display that viewport.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline smartinez281

  • Member
  • *
  • Posts: 16
Re: Im trying to edit a theme on Fuze
« Reply #13 on: February 07, 2010, 04:09:39 PM »
Ok
another problem (Im sorry lol, but I figured to keep all my problems in 1 thread instead of creating multiples)
Im trying to have the total track time show up next to the progress bar, it shows up fine, but it is cut off slightly. Any fixes? I tried to view the code of the repeat line (which is what is interfering with the time) but I cant figure it out
Code for showing the total time of track:
Code: [Select]
%V|22|166|95|7|0|C4C4C4|000000|
%ar%pt

Code of the section I believe messing with said code
Code: [Select]
# Repeat, Shuffle 
%xl|R|repeat.bmp|0|0|4|
%xl|S|shuffle.bmp|28|1|
%V|115|164|42|11|0|-|-|
%?mm<|%xdRa|%xdRb|%xdRc|%xdRd>%?ps<%xdS|>
Logged

Offline smartinez281

  • Member
  • *
  • Posts: 16
Re: Im trying to edit a theme on Fuze
« Reply #14 on: February 10, 2010, 12:13:06 AM »
bump :D
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Im trying to edit a theme on Fuze
 

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

Page created in 0.089 seconds with 14 queries.