Custom Filetype Colours
Rockbox has the capability to modify the File Browser to show different filetypes in different colours, depending upon the file extension.
It makes your file view look something like this:
This is achieved by creating or modifying a
file should be stored in
It is a simple text file and can be created from scratch, or a sample can be copied from
The file syntax is the file extension (or
) followed by a colon and then the colour required as an RGB value in hexadecimal.
The only limitation is that the extension must be one of Rockbox's 'known' filetypes, as listed in filetypes.c
. This does not include, for example,
. It also recognises the firmware extensions (
The built-in Text Editor automatically understands the file format, but an external text editor can also be used.
To edit the
file using Rockbox, just select it in the File Browser. The file will open in the Text Editor. Click on a line to edit it and the following choice will appear:
is selected, the virtual keyboard appears, allowing the file extension to be modified.
is selected, the standard colour selector screen appears (as per changing foreground and background colours)
Copyright © by the contributing authors.