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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Modifying theme "Grey" on iriver h120?
« previous next »
  • Print
Pages: [1]

Author Topic: Modifying theme "Grey" on iriver h120?  (Read 1315 times)

Offline littlenick

  • Member
  • *
  • Posts: 47
Modifying theme "Grey" on iriver h120?
« on: March 10, 2010, 12:41:13 PM »
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


Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Modifying theme "Grey" on iriver h120?
« Reply #1 on: March 10, 2010, 03:52:35 PM »
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.
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Modifying theme "Grey" on iriver h120?
« Reply #2 on: March 10, 2010, 07:08:19 PM »
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.

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.
Logged

Offline littlenick

  • Member
  • *
  • Posts: 47
Re: Modifying theme "Grey" on iriver h120?
« Reply #3 on: March 13, 2010, 03:04:54 PM »
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
 
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Modifying theme "Grey" on iriver h120?
« Reply #4 on: March 17, 2010, 04:50:58 PM »
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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Modifying theme "Grey" on iriver h120?
 

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

Page created in 0.074 seconds with 15 queries.