Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: ZincAlloy on February 15, 2008, 09:11:12 PM

Title: brushed metal theme
Post by: ZincAlloy on February 15, 2008, 09:11:12 PM
inspired by the "corners" thread.
this is a dummy I just made:
Title: Re: Work in progress: brushed metal
Post by: bzavala on February 15, 2008, 10:29:39 PM
it looks good! :D

is it using viewports??


what build are you using for the different font size (multifont)?

Title: Re: Work in progress: brushed metal
Post by: mightybrick on February 15, 2008, 11:52:45 PM
Very nice.  Please continue!
Title: Re: Work in progress: brushed metal
Post by: crash91 on February 16, 2008, 04:48:13 AM
  :o
Cool! Im gonna go look up viewports, it seems to be very useful now :).
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on February 16, 2008, 11:11:15 AM

it looks good! :D

is it using viewports??


what build are you using for the different font size (multifont)?





not sure yet. I thought viewports would allow for different fonts?
Title: Re: Work in progress: brushed metal
Post by: crash91 on February 16, 2008, 12:53:21 PM
I looked into that, and you can only use two, one is the userfont and the other is the default system font (for text editor and such).
On the wiki it says that multifont will eventually have to be good enough to get into svn if you want to use more than one font.
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on February 16, 2008, 01:32:40 PM
doesn't matter too much, anyway.
it kinda works with the svn, though it will look much better with viewports.
Title: Re: Work in progress: brushed metal
Post by: crash91 on February 17, 2008, 05:30:28 AM
The text scrolling off the "container box" doesnt look good IMO, i think you should make it a bit like this:
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on February 17, 2008, 04:56:25 PM
this will be fixed with viewports
Title: Re: Work in progress: brushed metal
Post by: crash91 on February 18, 2008, 04:14:14 AM
I only thought viewports had a left margin, i.e. if you place the text at say, (110,50) then it wouldnt scroll past the left. Not sure if there is a right margin....
Title: Re: Work in progress: brushed metal
Post by: GodEater on February 18, 2008, 04:36:04 AM
You'd be thoroughly mistaken then.

You're thinking of the scrolling margin tag, which only has a left edge.

Viewports allow margins to be defined, not just for the left and right edge, but for the top and bottom too.
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on February 18, 2008, 07:27:20 AM
exactly.
here's a screenshot of the viewports version.
the scrolling margins tag is still useful when using album art conditionals, though.
Title: Re: Work in progress: brushed metal
Post by: crash91 on February 18, 2008, 08:23:08 AM
@GodEater: So its like drawing a container box?
@ZincAlloy: Nice job!
Title: Re: Work in progress: brushed metal
Post by: GodEater on February 18, 2008, 08:26:31 AM

@GodEater: So its like drawing a container box?


http://www.rockbox.org/twiki/bin/view/Main/WebHome?topic=ViewPorts
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on February 18, 2008, 08:28:27 AM

@GodEater: So its like drawing a container box?
@ZincAlloy: Nice job!


1. yes.
2. thanks :)
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on March 25, 2008, 10:35:56 AM
what's wrong with the current build? Seems like it's not possible to display images (other than the backdrop) under a viewport anymore. this worked with the simulator and was very useful...

here's my code

Quote
# brushed metal
# (C) 2008, Johannes Voggenthaler (Zinc Alloy)
%wd
%X|bmwpsbd.bmp|0|0|
%P|pb.bmp|
%xl|A|pause.bmp|190|5|
%xl|B|hd.bmp|11|159|
%xl|C|coverspacer.bmp|18|34|
%Cl|22|38|s75|s75|
%pb|10|18|203|120|
%?mp<||%xdA||>
%?C<%C>
%?C<%xdC|>
%?lh<%xdB|>
%V|129|9|20|20|1|000000|ffffff|
%bl
%V|171|9|20|20|1|000000|ffffff|
%pv
%V|15|40|186|80|1|000000|ffffff|
%?C<%s%m|91|%al%?it<%it|%fn>|%s%ac%?it<%it|%fn>>
%?C<%s%m|91|%al%?ia<%ia|%?d2<%d2|(root)>>|%s%ac%?ia<%ia|%?d2<%d2|(root)>>>
%?C<%s%m|91|%al%?id<%id|%?d1<%d1|(root)>>|%s%ac%?id<%id|%?d1<%d1|(root)>>>
%?C<%s%m|91|%al%iy|%s%ac%iy>

%?C<%s%m|91|%alNext:%?It<%It|%Fn>|%s%acNext:%?It<%It|%Fn>>
%V|0|135|219|20|1|000000|ffffff|
%al      %pc%ac%pp of %pe%ar%pr    
%V|30|159|35|15|1|000000|ffffff|
%?ps
%V|70|159|70|15|1|000000|ffffff|
%?mm<|Repeat All|Repeat One|Repeat Shuffle|Repeat A-B>
%V|145|159|35|15|1|000000|ffffff|
%?mh
Title: Re: Work in progress: brushed metal
Post by: bzavala on March 25, 2008, 11:53:22 AM
I am also having problems with the latest code and viewports WPS.

I was having a problem with displaying volume/battery level images and someone suggest to put those before the viewport lines. That worked for me.

For some reason, if I use %?C<%C>  the albumart is not displayed, so only try %C

My problem right now is that I have text (viewports) to the left of the album art, and I am getting blank lines on top of the album art. I haven't had a chance to play with it to see if that is what's causing it.

Ben
Title: Re: Work in progress: brushed metal
Post by: PaulJam on March 25, 2008, 11:56:37 AM
Hi, you can still display images inside viewports by placing the %xd tags in the viewport. The coordinates from the %xl tag are relative to the viewport.
But in your WPS the coverspacer.bmp or albumart is only half under the viweport, so you have to increase the size of the viewport a little bit.
Title: Re: Work in progress: brushed metal
Post by: bzavala on March 25, 2008, 12:01:58 PM
just noticed something: is the | needed for this line:

%?C<%C>

to be

%?C<%C|>

this one seemed to work, correct?

%?C<%xdC|>
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on March 25, 2008, 03:46:43 PM
well, it seemed to work on the simulator..


Hi, you can still display images inside viewports by placing the %xd tags in the viewport. The coordinates from the %xl tag are relative to the viewport.
But in your WPS the coverspacer.bmp or albumart is only half under the viweport, so you have to increase the size of the viewport a little bit.


but the cover art and text positioning need to be independent from each other. I thought that was the actual point of viewports
Title: Re: Work in progress: brushed metal
Post by: terrence1019 on March 26, 2008, 12:20:12 AM
Two things:

1) When there's no album art, can you use a pic of a carved out rockbox symbol?

2) Instead of a "Energizer" type battery icon, can you use a fancier icon, like a   a few blocks
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on March 26, 2008, 06:26:01 AM
1) No. With no album art present the text will get centered
2) I like the battery icon...


just noticed something: is the | needed for this line:

%?C<%C>

to be

%?C<%C|>


just looked it up on the wiki. the "else" part is optional, so both versions are right

edit:
just had a chat with linuxstb. my theme worked on the simulator because of a bug that is fixed now. I'll have to wait for viewport conditionals to make it work.
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on April 06, 2008, 01:44:39 PM
ok, found a simple workaround.
The theme can now be found in the h300 wps gallery.

Enjoy!
Title: Re: Work in progress: brushed metal
Post by: ZincAlloy on June 25, 2008, 05:39:11 AM
updated to work with current builds