Rockbox Technical Forums
Rockbox General => Rockbox General Discussion => Topic started by: robin0800 on June 18, 2007, 04:07:33 PM
-
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
-
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.
-
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)
-
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!
-
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).
-
Is it just me, or is this feature broken for the Database?
I have successfully set up a .colours file (note UK spelling; a recent change) on my Gigabeat under latest firmware version r13672, but when browsing the Database, items shown as folders are, apparently randomly, the specified colour or black. Foreground colour is set to white.
[attachment deleted by admin for age]
-
This does seem broken, please file a bug report. Database wasn't supposed to show any colors at all (beyond 'foreground')
Edit: I've fixed it, committing the fix, don't file a bug report (or tell me so I can close it).
-
Thanks. I'll try it tomorrow, as the build (build 2007-06-19 19:03:46 - from r13673 to r13674) does not appear to be completing at the moment (30 mins and counting and only the Archos' done... Â :( )
I was just going to do the bug report when I saw your update, so there's nothing to do there :)
-
It's been a very light day for commits, and the one Llorean did I managed to bugger up by forgetting to install ccache on the new build server. So it's all my fault. Sorry!!!