Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: sevenwords on March 19, 2007, 08:23:58 PM

Title: newbie working on a new theme for the gigabeat f
Post by: sevenwords on March 19, 2007, 08:23:58 PM
Hello, I'm new here.  I just installed Rockbox on my Gigabeat F40 about a week ago and I must say that this is one of the best things I've come across in a long time and I would like to say thank you to all the people involved in making such an awesome thing.  I have decided to give back by designing a new theme.  I have no prior coding knowledge but it seems pretty easy to pick up after reading the manual and looking at some of the other themes I've installed for reference points.  I already have most of the wps file done but I had a little question.

I'm attempting to do a new theme for the Gigabeat F and I was wondering about the date & time tags.  I looked in the manual and I didn't see those listed, does anyone have a complete list of tags for the WPS?  Also does anyone have any pointers about making themes that isn't listed in the manual such as album art and placement of custom bmp's (like how many pixels = 1 line?  I tried to make sure I searched around 1st before asking questions, so be easy on me!  ;D  Thanks!
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Flake on March 19, 2007, 09:50:43 PM
I was wondering about the date & time tags

http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Real_Time_Clock
Title: Re: newbie working on a new theme for the gigabeat f
Post by: sevenwords on March 19, 2007, 10:32:32 PM
Thank you, I was going off the PDF and it wasn't in there.  I almost have it done.  I have it running on my Gigabeat now, I just need to get an ok from the artist who made the background (which shouldn't be a problem) and make some minor cosmetic changes.  It's pretty simple but very clean & nice looking.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Hweb21 on March 19, 2007, 11:48:39 PM
http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Real_Time_Clock

Maybe this should be added to the PDFs.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: sevenwords on March 20, 2007, 07:53:55 PM
Here's the screen shots I have so far.  I'm still going to change a couple things before I release it.  No set date yet.  Let me know what you guys think and if and what you'd like to see implemented.  I don'treally know how to add album art functionality, maybe someone could help me out with that?

(http://farm1.static.flickr.com/152/428652164_0e633c9237.jpg)(http://farm1.static.flickr.com/176/428652166_d0bb9cb083.jpg)
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Hweb21 on March 20, 2007, 11:23:25 PM
http://www.rockbox.org/twiki/bin/view/Main/AlbumArt

if you need help with the code just paste it, tell me where you want it and how big you want it and i will write the code.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: sevenwords on March 21, 2007, 12:31:55 AM
http://www.rockbox.org/twiki/bin/view/Main/AlbumArt

if you need help with the code just paste it, tell me where you want it and how big you want it and i will write the code.

Well isn't the standard now 100x100 since the resize doesn't work?  I'm thinking about moving everything below "Now Playing:" down more and putting the album art centered in the middle under "Now Playing".  But I'm also open to have the album art in the same position but left alinged with the artist & track info next to it.  Here's the code.

Code: [Select]
%wd
%X|bg.bmp|
%al%bl%% power%ar%ca, b d l:MPc
%al Track %pp of %pe



%acNow Playing:

%s%ac%?ia<%ia|Unknown Artist>
%s%ac%?id<%id|Unknown Album> (%?iy<%iy|Unknown Year>)
%s%ac%?it<%it|Unknown Track Name>
%ac%fb kbps %fc


%pb|10|10|230|

%al%pc%ac%pt%ar%pr
%ac%?mp

%acNext Track:

%s%ac%?Ia<%Ia|Unknown Artist>
%s%ac%?Id<%Id|Unknown Album> (%?Iy<%Iy|Unknown Year>)
%s%ac%?It<%It|Unknown Track Name>








%al %?mm%ar%?ps

For some reason it's not allowing me to add the last line of code.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Job Van Dam on March 21, 2007, 02:11:59 AM
Holy crap I'm so gonna teef that backdrop.

I guess I'm part of the minority but I don't like knowing the next song and I don't like album art.

Still for your first theme that's really good. 4/5 stars.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Nate! on March 21, 2007, 07:48:33 PM
sevenwords:

Firstly, %mm will only show the letter m.  I think the tag you want to use is: %?mm
Example here: http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Repeat_mode
This will show the words corresponding to the Repeat mode you have set.

You can also load small bmp images in place of the words.  Replace the word 'OFF' above with %xd(a-zA-Z)  where (a-zA-Z) = the letter used in the corresponding %xl tag.  (Hope that made sense.)  ???
Looking here gives you an example of exactly what you are trying to do except with images: http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Using_images

Unless you intend on having a space in front of the Repeat Mode display you should use: %al%?mm

Lastly, try deleting a few of the lines above the %al%?mm tag.  It may be displaying, just far below the dimensions of your display.

Hope that helps.

Title: Re: newbie working on a new theme for the gigabeat f
Post by: sevenwords on March 21, 2007, 08:56:18 PM
sevenwords:

Firstly, %mm will only show the letter m.  I think the tag you want to use is: %?mm
Example here: http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Repeat_mode
This will show the words corresponding to the Repeat mode you have set.

You can also load small bmp images in place of the words.  Replace the word 'OFF' above with %xd(a-zA-Z)  where (a-zA-Z) = the letter used in the corresponding %xl tag.  (Hope that made sense.)  ???
Looking here gives you an example of exactly what you are trying to do except with images: http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Using_images

Unless you intend on having a space in front of the Repeat Mode display you should use: %al%?mm

Lastly, try deleting a few of the lines above the %al%?mm tag.  It may be displaying, just far below the dimensions of your display.

Hope that helps.



Nate,

thanks for the image tags, as far as the mm tag, I know about that, I mentioned that the code box for some reason on the BB messed up the code for the last line for some reason.  I have no clue as to why but I tried editing my post about 5 times and it would still display what you see for some reason.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: sevenwords on March 21, 2007, 09:15:26 PM
hey nate (or anyone really),

1 more question.  what would you recommend for making custom icons?  I have photoshop and i'm pretty good using it but are there other programs more better equipped at making custom icons?

also, thanks for the compliments job van dam.  as for the next song playing tags, I really only added them because I personally use shuffle ALOT.  It's good to see what's coming up next, especially for parties with custom playlists.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Nate! on March 21, 2007, 10:39:38 PM
aww dang, so you were just showing your code.  Well in that case, umm, yeah looks good. :-[

Towards the top, under the %X, use: %Cl|160|125||| to define coordinates.

I put my tag to actually show the album art, at the bottom of the wps file to make sure it doesn't interfere with the Album Art itself.  I had this invisible line through album art in the beginning and it took me hours to figure it out.

Anyway, use: %?C<%C|%xdy> to show album art.
The %xdy loads a 255,0,255 square the same size as the Album art.  Just to wipe things clean if there isn't any album art present for a song/album.  I think you could just leave that last part off and it would probably do the same thing.  Have to test that myself. I may be loading something unnecessarily.

As for icon making: The Gimp is GNU licensed.  (Free for personal use.)  The Gimp is pretty powerful for all types of image editing/creation.  mtPaint is also of the same license and is more specifically for icon creating/editing, but is a decent image editor in general.

Sorry for the long posts.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: jmsunlinenet on March 21, 2007, 11:19:11 PM
Personally I don't like your background at all, but I guess that is a matter of taste. You might want to check the functionality and legibility in different lighting environments, for example in a car in sunlight, under fluorescent lighting, in darkness etc.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Hweb21 on March 21, 2007, 11:49:02 PM
resizing works for me (use moded build though)

%?C<%C|>
%Cl|x|y|scZ|scZ|

sc = resize and center

Z = how big it is

ex.
%Cl|6|24|sc55|sc55|
so it would display a 55 X 55 album art at 6 to the right and 24 down.

would look like this
(http://img.photobucket.com/albums/v282/gregken/dump070310-205158.jpg)
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Mad Cow on March 22, 2007, 05:24:00 PM
Yea, yhere's a resize patch that work perfectly, my build has it.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Nate! on March 22, 2007, 06:39:33 PM
I haven't checked the resize bmp patch in a couple of months.  I'll see if it works with the new official build and bootloader.  I was planning on doing a version of the Zune theme that's in the gallery.  This would take resizing my Album Art.  I'd use the resize function, or I'd have to manually (batch,)resize all of my album art from my pc.
Title: Re: newbie working on a new theme for the gigabeat f
Post by: Mad Cow on March 22, 2007, 07:52:21 PM
I haven't checked the resize bmp patch in a couple of months.  I'll see if it works with the new official build and bootloader.  I was planning on doing a version of the Zune theme that's in the gallery.  This would take resizing my Album Art.  I'd use the resize function, or I'd have to manually (batch,)resize all of my album art from my pc.

It works perfectly, trust me. I put it in my latest build. (Today)
Title: Re: newbie working on a new theme for the gigabeat f
Post by: sevenwords on March 22, 2007, 11:40:51 PM
I uploaded it today.