Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: robin0800 on June 18, 2007, 04:07:33 PM

Title: SVN inclusion of colors stuff!
Post 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
Title: Re: SVN inclusion of colors stuff!
Post by: GodEater on June 18, 2007, 04:49:52 PM
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.
Title: Re: SVN inclusion of colors stuff!
Post by: roolku on June 18, 2007, 05:47:37 PM
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)
Title: Re: SVN inclusion of colors stuff!
Post by: robin0800 on June 18, 2007, 06:14:03 PM
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!
Title: Re: SVN inclusion of colors stuff!
Post by: Llorean on June 18, 2007, 06:14:36 PM
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).
Title: Re: SVN inclusion of colors stuff!
Post by: bascule on June 19, 2007, 05:31:33 AM
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]
Title: Re: SVN inclusion of colors stuff!
Post by: Llorean on June 19, 2007, 05:44:49 AM
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).
Title: Re: SVN inclusion of colors stuff!
Post by: bascule on June 19, 2007, 03:34:18 PM
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 :)
Title: Re: SVN inclusion of colors stuff!
Post by: GodEater on June 19, 2007, 03:49:50 PM
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!!!