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
| | |-+  New To Themes- Tagging/Placement/Font Color Help
« previous next »
  • Print
Pages: [1] 2

Author Topic: New To Themes- Tagging/Placement/Font Color Help  (Read 4594 times)

Offline zacdl

  • Member
  • *
  • Posts: 9
New To Themes- Tagging/Placement/Font Color Help
« on: February 12, 2007, 03:37:44 PM »
I'll start out by showing you my cfg file:
Code: [Select]
wps: /.rockbox/wps/washington.wps
font: /.rockbox/fonts/helvR12.fnt
statusbar: off
backdrop: /.rockbox/backdrops/monument.bmp
foreground color: 000000
background color: 000000
backlight timeout: 15

It picks the font, sets the backlight, finds the backdrop ok.
What I have been unable to find to do is change the font color (I am using a lighter background).
Any idea how to do that? I am unsure what the foreground and background colors do, but even set at black they dont change anything.

Here is my WPS:
Code: [Select]
%m%al%t10%cl:Mpc
%P|pbar.bmp|
%Cl|2|15|s60|s60|
%xl|A|batt1.bmp|138|2|
%xl|B|batt2.bmp|138|2|
%xl|C|batt3.bmp|138|2|
%xl|D|batt4.bmp|138|2|
%xl|E|batt5.bmp|138|2|
%xl|F|battc.bmp|138|2|
%xl|G|battp.bmp|138|2|
%xl|P|ffcon.bmp|3|98|
%xl|Q|rwcon.bmp|3|98|
%xl|R|plcon.bmp|3|98|
%xl|S|pscon.bmp|3|98|
%xl|a|speaker.bmp|3|110|
%xl|b|hold.bmp|119|1|
%X|bground.bmp|
%pb|0|15|140|100
%wd
%s%ac%?ia<%ia|Unknown>%?Cl<%m|65|160|
%s%ac%?it<%it|Unknown>%?Cl<%m|65|160|
%s%ac%?id<%id|Unknown>%?Cl<%m|65|160|
%m|0|160|%ac%?mp%al%fbkps%ar%?fc
%m|0|160|%ac%t10%pc / %t10%pt %m%ar%t10%pp/%pe %al%xda      %?pv<0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30>;
%?mh<%xdb|>
%?bp<%?bc<%xdF|%xdG>|%?bl<%xdA|%xdB|%xdC|%xdD|%xdE>>
%?mp<%xdU%xdS|%xdT%xdR|%xdU%xdS|%xdT%xdP|%xdT%xdQ>
%C
A common problem I seem to have no matter what WPS I try to make, is there is always text underneath the progressbar. How do I basically tell it to drop the text down another line? How to tell it where to stick other text at (like moving the track info up a bit?)

Hope you can help me with this stuff! Thanks!
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #1 on: February 13, 2007, 05:58:40 AM »
Quote from: zacdl on February 12, 2007, 03:37:44 PM
A common problem I seem to have no matter what WPS I try to make, is there is always text underneath the progressbar. How do I basically tell it to drop the text down another line? How to tell it where to stick other text at (like moving the track info up a bit?)

How big is the progress bar graphic? It will always display full height, regardless of the 'height' parameter in the %pb tag (see below), so it might be extending over two lines.

To add an extra line, just leave a blank line in the .wps file. That will put an empty line on the screen.

Quote
...
%X|bground.bmp|
%pb|0|15|140|100
 Â                                <----- creates an empty line on screen.
%s%ac%?ia<%ia|Unknown>%?Cl<%m|65|160|
%s%ac%?it<%it|Unknown>%?Cl<%m|65|160|
...

Remember that a WPS is is first and foremost a text formatting script, more like HTML than code, so it should be written how you want to see it displayed, with graphics code separated out at the front (as you had it)

%wd should by convention be at the beginning of the file.

Code: [Select]
%pb|0|15|140|100
This appears to have too many parameters, it should be:
Code: [Select]
%pb|height|leftpos|rightpos|

Code: [Select]
%m%al%t10%cl:Mpc
This line does not make much sense to me. %t is only used in alternating sublines; %m is not a code.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline zacdl

  • Member
  • *
  • Posts: 9
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #2 on: February 13, 2007, 08:59:48 AM »
Well, I am using a theme I found called Panther...

I have just been using that as a template so far. So some of this stuff that does not make sense to you, I have no idea why it is that way, either.

I was wondering about those parameters as well, what do you think needs to happen??

The progressbar looks fine. The text is just behind it (so I guess the text needs to be on the line below it?).
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #3 on: February 13, 2007, 09:44:31 AM »
Quote from: zacdl on February 13, 2007, 08:59:48 AM
The progressbar looks fine. The text is just behind it (so I guess the text needs to be on the line below it?).

That just shouldn't happen.

You already have the %pb on its own line, that should be enough.

Try this; comment out the progress bar graphic like this:

#%P|pbar.bmp|

and see what happens when the default bar is used.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline zacdl

  • Member
  • *
  • Posts: 9
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #4 on: February 13, 2007, 12:44:20 PM »
Alright, so it must be something else happening... the default bar did not work, either. It still has stuff behind it (text).

Also, how do I change the system font color?
« Last Edit: February 13, 2007, 12:50:19 PM by zacdl »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #5 on: February 13, 2007, 02:59:20 PM »
You are going to have to post a screenshot, as I don't really understand exactly what the problem looks like.

The problem may be that the WPS is designed for a custom build (maybe with album art?) which may be affecting the way it works.

And from the (iPod Video, I'm presuming) manual:

Quote
Set Foreground Colour:
Sets the colour used for text and icons.

You may be better to work through this tutorial before you start hacking into a more complicated WPS
« Last Edit: February 13, 2007, 03:06:10 PM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline zacdl

  • Member
  • *
  • Posts: 9
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #6 on: February 13, 2007, 03:04:47 PM »
I took the bitrate and filetype tags and stuck them above the progress bar (right under the ID3 tags) and it seems to have fixed it.

The only question I can think of right now, is how on earth do you change the system font? From what I can tell, there are no color tags of any kind for font.

I am really just trying an experimental design right now, just so I can get my feet wet and know how to design a theme and wps. It is just I ran into a few problems I did not understand.

I guess the file also records any spare spaces you may have? More pickey than HTML.
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #7 on: February 13, 2007, 03:22:29 PM »
Quote from: zacdl on February 13, 2007, 03:04:47 PM
The only question I can think of right now, is how on earth do you change the system font? From what I can tell, there are no color tags of any kind for font.

The overall font for Rockbox can be changed via the Display settings (provided you've downloaded the font pack ;) )

And I believe the font colour can be changed (see above post), but again it is a global change. To change fonts/font colours on a line-by-line basis requires application of patches or a custom build.

Quote from: zacdl on February 13, 2007, 03:04:47 PM
I guess the file also records any spare spaces you may have? More pickey than HTML.

It only displays what you tell it. Some people use additional spaces to position text where they want it, as the display is quite character-placement-driven if you are not using the fully-graphical approach. It's not just whitespace :P

See this as an example of what can be achieved without using a single graphic...
« Last Edit: February 13, 2007, 03:28:40 PM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline zacdl

  • Member
  • *
  • Posts: 9
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #8 on: February 13, 2007, 03:27:47 PM »
See, the H10 manual didnt say that is what the purpose of foreground color was.

But both foreground color and background color were the only things I saw that delt with color. So I set both to black. In my configuration file:

foreground color: 000000
background color: 000000
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #9 on: February 13, 2007, 03:29:03 PM »
I'm surprised you saw anything!

EDIT: I've just looked at the latest online versions of both 5GB and 20GB manuals and both state exactly what I posted above...
« Last Edit: February 13, 2007, 03:31:28 PM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline zacdl

  • Member
  • *
  • Posts: 9
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #10 on: February 13, 2007, 03:30:56 PM »
What are you talking about???
Even with the font colors set to black- 000000, the font stays white. Everywhere.
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #11 on: February 13, 2007, 03:32:52 PM »
It may just be my understanding, then.

I have a monochrome device, so I'm outside my normal area of knowledge on font colours :(
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline zacdl

  • Member
  • *
  • Posts: 9
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #12 on: February 13, 2007, 03:56:36 PM »
OK Thanks for your help, then. I guess I will have to stay with darker themes.
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #13 on: February 13, 2007, 05:04:48 PM »
Quote from: bascule on February 13, 2007, 05:58:40 AM
Code: [Select]
%pb|0|15|140|100
This appears to have too many parameters, it should be:
Code: [Select]
%pb|height|leftpos|rightpos|

Yes, the additional parameter implies that this theme uses the y-coordinate patch for the progressbar to place it on the screen. I don't know much about the mentioned Panther theme or this patch - only that it is not part of the official rockbox, so I guess the official version just ignores this parameter and that's why it looks misplaced.

If you want to use the patch you would have to find it in the tracker (see left side menu) and patch/compile your own build... or... look into the forums' "unsupported builds" section and find one that suits your needs.

Quote from: zacdl on February 13, 2007, 03:27:47 PM
But both foreground color and background color were the only things I saw that delt with color. So I set both to black. In my configuration file:

It should do what you say and use the specified foreground colour as text colour. In your example you would get black text on black background (or on your specified background image) when loading the config-file. To my knowledge it should work alright this way - maybe asking the obvious but how do you load your theme? (Sorry I'm just throwing out suggestions to help, had to ask.)
Logged

Offline zacdl

  • Member
  • *
  • Posts: 9
Re: New To Themes- Tagging/Placement/Font Color Help
« Reply #14 on: February 13, 2007, 05:09:50 PM »
Quote from: pixelma on February 13, 2007, 05:04:48 PM
It should do what you say and use the specified foreground colour as text colour. In your example you would get black text on black background (or on your specified background image) when loading the config-file. To my knowledge it should work alright this way - maybe asking the obvious but how do you load your theme? (Sorry I'm just throwing out suggestions to help, had to ask.)

Should, but nothing is black at all.

I copy over the cfg file, wps file, and all the images I need (The font is already on there), then from within the player I browse to the Theme (cfg) file. I load it, and it loads upon each startup. The background color or foreground colors dont do anything.
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  New To Themes- Tagging/Placement/Font Color Help
 

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

Page created in 0.079 seconds with 15 queries.