Support and General Use > Theming and Appearance Customization
Modifying theme "Grey" on iriver h120?
(1/1)
littlenick:
I really like the "grey"-theme on my iriver h120 - though wonder if someone might point out to me how to change it a little bit:
- Readability of the "artist" -folder in the broad horizontal bar:
Now too little contrast of "white" script against a bright grey background - could it be made into "white" script against
dark grey or black?
- Volume meter: Would it be possible to have numeric values displayed in the volume meter's field (upper left screen)?
- Battery status: It's ok the way it is now - but an additional numeric value (or an info about the battery's current output
voltage) - would this be doable?
- A question not only concerning this theme: Is it possible to display real time kbps-values (much in the same way as
winamp does)?
I have no experience at modifying themes at all, that's why I ask...
Thanks,
Tom
karashata:
Okay, without seeing the actual WPS code it's a bit tricky to tell you what exact changes you'll need to make, but I'll do what I can...
To make the background of any particular viewport a specific color (in this case, black), make sure the viewport's background colour is defined as 000000. The viewport tag should follow one of these two formats:
%V|x-pos|y-pos|width|height|font|foreground color|background color|
%Vl|identifier letter|x-pos|y-pos|width|height|font|foreground color|background color|
In either case, you'll want to change the very last value to 000000 to define it as a black background.
To make the volume display as numbers, remove the conditional volume tag and the image display tags within it and replace it with %pv. The conditional tag should resemble this:
%?pv<image1|image2|image3|...|image(n)>
...where image(n) would be a %xd(letter)(number).
To make the battery info display the voltage, use the %bv tag. You'll need to put it in wherever you feel it fits best.
Rockbox cannot display real-time bitrates for variable bitrate files, it can only display the average bitrate for the whole file.
For your reference, you can find a list of all of the supported WPS tags here.
pixelma:
--- Quote from: karashata on March 10, 2010, 03:52:35 PM ---To make the background of any particular viewport a specific color (in this case, black), make sure the viewport's background colour is defined as 000000. The viewport tag should follow one of these two formats:
%V|x-pos|y-pos|width|height|font|foreground color|background color|
%Vl|identifier letter|x-pos|y-pos|width|height|font|foreground color|background color|
In either case, you'll want to change the very last value to 000000 to define it as a black background.
--- End quote ---
There are two things which are important here:
* if the WPS uses a backdrop, the background colour or shade set in the viewport will be ignored, changing this in the WPS code won't help (this is also valid for colour screens)
* on greyscale screens such as the h120's the viewport parameters takes a foreground or background shade which is one of the following numbers: 0 (black), 1 (dark grey), 2 (light grey) and 3 (white). Using the RGB values like the 000000 mentioned above will break the WPS completely
Assuming the original poster means the "Gray" theme that's available on the theme site, the background colour for the artist line comes from the background image. It should simply be enough to edit the "background.bmp" inside the .rockbox/wps/gray directory to use a darker grey or even black in these parts.
With images it is possible to use a grey value that is between the "native" dark grey and black but this means that Rockbox will dither the parts with black and dark grey. If you want a clean look you can make it completely black.
littlenick:
Looks like I got to dive into programming.
Editing the "background.bmp" - I'll try this another day (see if a mouse-click gets me there).
And then I'll report back.
Anyway - thanks to both of you
pixelma:
No, no programming needed - just a halfway decent graphics editor. Open the background image which you will find in your WPSs folder (under .rockbox/wps/yourtheme) in a graphics programme, in case of the "gray" theme it is the background.bmp. With the programme you can change the colour of the part in question, save it and you're done.
Navigation
[0] Message Index
Go to full version