Rockbox General > Rockbox General Discussion

SVN inclusion of colors stuff!

(1/2) > >>

robin0800:
Having looked at the recent svn could I ask for a simple explanation of what this colors stuff is and how to use it in practice?

many thanks

GodEater:
Essentially you write a .colors file into the themes directory with something like this in it :

folder:808080
ipod:00B0B0
mp3:00FF00
flac:00FF00
ogg:00FF00
txt:FF0000
cfg:D00000

And files matching those type (usually it's a ., but folders don't have an extension) will be displayed in that colour.

roolku:
You also need to reference the file in a *.cfg (i.e. theme) file which you need to load.

e.g.

filetype colors: /.rockbox/themes/sample.colors

*.color files can be conveniently edited with text_editor (open with)

robin0800:
Thanks for the quick reply.
If I've understood correctly the file in the theme folder would be sample.colors, which would  be called fom the theme configuration file as roolku states

filetype colors: /.rockbox/themes/sample.colors

Just tried this and it works!

Llorean:
Only filetypes supported by Rockbox, or Rockbox's viewers.config file, can be colored. All other files default to the foreground color (the color they would be before this patch).

Navigation

[0] Message Index

[#] Next page

Go to full version