Rockbox Technical Forums
Support and General Use => Theming and Appearance Customization => Topic started by: ZincAlloy on February 15, 2008, 09:11:12 PM
-
inspired by the "corners" thread.
this is a dummy I just made:
-
it looks good! :D
is it using viewports??
what build are you using for the different font size (multifont)?
-
Very nice. Please continue!
-
:o
Cool! Im gonna go look up viewports, it seems to be very useful now :).
-
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?
-
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.
-
doesn't matter too much, anyway.
it kinda works with the svn, though it will look much better with viewports.
-
The text scrolling off the "container box" doesnt look good IMO, i think you should make it a bit like this:
-
this will be fixed with viewports
-
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....
-
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.
-
exactly.
here's a screenshot of the viewports version.
the scrolling margins tag is still useful when using album art conditionals, though.
-
@GodEater: So its like drawing a container box?
@ZincAlloy: Nice job!
-
@GodEater: So its like drawing a container box?
http://www.rockbox.org/twiki/bin/view/Main/WebHome?topic=ViewPorts
-
@GodEater: So its like drawing a container box?
@ZincAlloy: Nice job!
1. yes.
2. thanks :)
-
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
# 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
-
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
-
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.
-
just noticed something: is the | needed for this line:
%?C<%C>
to be
%?C<%C|>
this one seemed to work, correct?
%?C<%xdC|>
-
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
-
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
-
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.
-
ok, found a simple workaround.
The theme can now be found in the h300 wps gallery.
Enjoy!
-
updated to work with current builds