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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  different font colours in different viewports
« previous next »
  • Print
Pages: [1]

Author Topic: different font colours in different viewports  (Read 1922 times)

Offline tyip0217

  • Member
  • *
  • Posts: 10
different font colours in different viewports
« on: November 21, 2008, 09:13:01 PM »
Hi, Is it possible to have different colours in different viewports, my theme is currently showing all fonts in white, but I want 1 line (1 viewport) to show in black

Thank
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: different font colours in different viewports
« Reply #1 on: November 22, 2008, 07:23:05 AM »
pretty simple, it's all in the wiki.
just change the foregorund colour parameter in the defining viewport line:
%V|x|y|[width]|[height]|[font]|[fgcolor]|[bgcolor]|
Logged

Offline tyip0217

  • Member
  • *
  • Posts: 10
Re: different font colours in different viewports
« Reply #2 on: November 22, 2008, 08:01:28 AM »
my original viewpoint is %V|6|222|228|16|1|-|-| this works perfectly fine,
but if I change it to %V|6|222|228|16|1|0|-|
then the theme does not display properly, did I make some mistake?
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: different font colours in different viewports
« Reply #3 on: November 22, 2008, 08:25:26 AM »
0 is no colour.
000000 is black.
FFFFFF is white.
if you have photoshop or another imaging program, you can find out the code for every colour. i don't know the name of the code, but these 6 digit-Hexadecimals are what rockbox (or is it just the wps) uses to identify coulours.
Logged

Offline tyip0217

  • Member
  • *
  • Posts: 10
Re: different font colours in different viewports
« Reply #4 on: November 22, 2008, 09:06:51 AM »
Thx, got it working now, I was trying the Greyscale method, it says in the wiki that 0=black and 3=white, donno why that didn't work, never thought using the code for colours below  :D
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: different font colours in different viewports
« Reply #5 on: November 22, 2008, 09:17:58 AM »
Quote from: BdN3504 on November 22, 2008, 08:25:26 AM
0 is no colour.
000000 is black.
FFFFFF is white.
if you have photoshop or another imaging program, you can find out the code for every colour. i don't know the name of the code, but these 6 digit-Hexadecimals are what rockbox (or is it just the wps) uses to identify coulours.

It's simple. The first two hex digits are red, the next two are green, and the last two are blue.. So e.g. pure blue is 0000FF. Have a look at http://en.wikipedia.org/wiki/RGB_color_model for more information
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: different font colours in different viewports
« Reply #6 on: November 22, 2008, 10:11:27 AM »
here's a table:
http://en.wikipedia.org/wiki/Web_colors#X11_color_names
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  different font colours in different viewports
 

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

Page created in 0.072 seconds with 15 queries.