Add filetype colours to the manual as added in r20348 to the 3.2 branch too.

git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_2@20349 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alex Parker 2009-03-18 16:38:19 +00:00
parent 740901f165
commit 1ab83d1051
26 changed files with 101 additions and 12 deletions

View file

@ -39,17 +39,82 @@ file find the instructions on the Rockbox website:
\wikilink{LangFiles} \wikilink{LangFiles}
\opt{lcd_color}{ \opt{lcd_color}{
\subsection{Changing Colours}
The colours used in the Rockbox interface can be changed to any combination
you like. To do this, go to
\setting{Settings $\rightarrow$ Theme Settings $\rightarrow$ Colours}.
The colours set here are used in all menus, browsers and in the
\setting{While Playing Screen}.
\subsection{Changing Filetype Colours} \subsection{Changing Filetype Colours}
Rockbox has the capability to modify the \setting{File Browser} Rockbox has the capability to modify the \setting{File Browser} to show
to show different filetypes in different colours depending upon different filetypes in different colours, depending on the file extension.
the file extension. See the \wikilink{CustomFiletypeColours} Wiki \subsubsection{Set-up}
page for details. There are two steps to changing the filetype colours - creating
a file with the extension \fname{.colours} and then activating it using
a config file. The \fname{.colours} files \emph{must} be stored in
the \fname{/.rockbox/themes/} directory.
The \fname{.colours} file is just a text file, and can be edited with
your text editor of choice.
\subsubsection{Creating the .colours file}
The \fname{.colours} file consits of the file extension
(or \fname{folder}) followed by a colon and then the colour desired
as an RGB value in hexadecimal, as in the following example:\\*
\\
\config{folder:808080}\\
\config{mp3:00FF00}\\
\config{ogg:00FF00}\\
\config{txt:FF0000}\\
\config{???:FFFFFF}\\*
The permissible extensions are as follows:\\*
\\
\config{folder, m3u, m3u8, cfg, wps, lng, rock, bmark, cue, colours, mpa,
\firmwareextension{}, %
\opt{swcodec}{mp1, }mp2, mp3%
\opt{swcodec}{, ogg, oga, wma, wmv, asf, wav, flac, ac3, a52, mpc,
wv, m4a, m4b, mp4, mod, shn, aif, aiff, spx, sid, adx, nsf, nsfe,
spc, ape, mac, sap}%
\opt{lcd_bitmap}{\opt{swcodec}{, mpg, mpeg}}%
\opt{HAVE_REMOTE_LCD}{, rwps}%
\opt{lcd_non-mono}{, bmp}%
\opt{radio}{, fmr}%
\opt{lcd_bitmap}{, fnt, kbd}}\\*
%It'd be ideal to get these from filetypes.c
All file extensions that are not either specifically listed in the
\fname{.colours} files or are not in the list above will be
set to the colour given by \config{???}. Extensions that
are in the above list but not in the \fname{.colours}
file will be set to the foreground colour as normal.
\subsubsection{Activating}
To activate the filetype colours, the \fname{.colours} file needs to be
invoked from a \fname{.cfg} configuration file. The easiest way to do
this is to create a new text file containing the following single
line:\\*
\\
\config{filetype colours: /.rockbox/themes/filename.colours}\\*
where filename is replaced by the filename you used when creating the
\fname{.colours} file. Save this file as e.g. \fname{colours.cfg} in the
\fname{/.rockbox/themes} directory and then activate the config file
from the menu as normal
(\setting{Settings} $\rightarrow$ \setting{Theme Settings}%
$\rightarrow$ \setting{Browse Themes}).
\subsubsection{Editing}
The built-in \setting{Text Editor} (see \reference{sec:text_editor})
automatically understands the
\fname{.colours} file format, but an external text editor can
also be used. To edit the \fname{.colours} file using Rockbox,
select it in the \setting{File Browser}. The file will open in
the \setting{Text Editor}. Upon selecting a line, the following choices
will appear:\\*
\\
\config{Extension}\\
\config{Colour}\\*
If \config{Extension} is selected, the \setting{virtual keyboard}
(see \reference{sec:virtual_keyboard}) appears,
allowing the file extension to be modified. If \config{Colour}
is selected, the colour selector screen appears. Choose the desired
colour, then save the \fname{.colours} file using the standard
\setting{Text Editor} controls.
} }
\opt{lcd_non-mono}{% \opt{lcd_non-mono}{%

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.mi4}} \newcommand{\firmwarefilename}{\fname{rockbox.mi4}}
\newcommand{\firmwareextension}{\fname{mi4}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{flash storage} \newcommand{\disk}{flash storage}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity... %For use when referring to the player. E.g. the \daps\ capacity...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{firmwarefilename}{\fname{rockbox.sansa}} \newcommand{firmwarefilename}{\fname{rockbox.sansa}}
\newcommand{\firmwareextension}{\fname{sansa}}
\newcommand{\screenshotsize}{3cm} \newcommand{\screenshotsize}{3cm}
\newcommand{\disk}{flash storage} \newcommand{\disk}{flash storage}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.mi4}} \newcommand{\firmwarefilename}{\fname{rockbox.mi4}}
\newcommand{\firmwareextension}{\fname{mi4}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{flash storage} \newcommand{\disk}{flash storage}

View file

@ -18,6 +18,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.gigabeat}} \newcommand{\firmwarefilename}{\fname{rockbox.gigabeat}}
\newcommand{\firmwareextension}{\fname{gigabeat}}
\newcommand{\screenshotsize}{6cm} \newcommand{\screenshotsize}{6cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.gigabeat}} \newcommand{\firmwarefilename}{\fname{rockbox.gigabeat}}
\newcommand{\firmwareextension}{\fname{gigabeat}}
\newcommand{\screenshotsize}{6cm} \newcommand{\screenshotsize}{6cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.mi4}} \newcommand{\firmwarefilename}{\fname{rockbox.mi4}}
\newcommand{\firmwareextension}{\fname{mi4}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -18,6 +18,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.iriver}} \newcommand{\firmwarefilename}{\fname{rockbox.iriver}}
\newcommand{\firmwareextension}{\fname{iriver}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.mi4}} \newcommand{\firmwarefilename}{\fname{rockbox.mi4}}
\newcommand{\firmwareextension}{\fname{mi4}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -18,6 +18,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.iriver}} \newcommand{\firmwarefilename}{\fname{rockbox.iriver}}
\newcommand{\firmwareextension}{\fname{iriver}}
\newcommand{\screenshotsize}{6cm} \newcommand{\screenshotsize}{6cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -16,6 +16,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.ipod}} \newcommand{\firmwarefilename}{\fname{rockbox.ipod}}
\newcommand{\firmwareextension}{\fname{ipod}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -16,6 +16,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.ipod}} \newcommand{\firmwarefilename}{\fname{rockbox.ipod}}
\newcommand{\firmwareextension}{\fname{ipod}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -16,6 +16,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.ipod}} \newcommand{\firmwarefilename}{\fname{rockbox.ipod}}
\newcommand{\firmwareextension}{\fname{ipod}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -16,6 +16,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.ipod}} \newcommand{\firmwarefilename}{\fname{rockbox.ipod}}
\newcommand{\firmwareextension}{\fname{ipod}}
\newcommand{\screenshotsize}{6cm} \newcommand{\screenshotsize}{6cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -16,6 +16,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.ipod}} \newcommand{\firmwarefilename}{\fname{rockbox.ipod}}
\newcommand{\firmwareextension}{\fname{ipod}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -15,6 +15,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.ipod}} \newcommand{\firmwarefilename}{\fname{rockbox.ipod}}
\newcommand{\firmwareextension}{\fname{ipod}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{flash storage} \newcommand{\disk}{flash storage}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.ipod}} \newcommand{\firmwarefilename}{\fname{rockbox.ipod}}
\newcommand{\firmwareextension}{\fname{ipod}}
\newcommand{\screenshotsize}{8cm} \newcommand{\screenshotsize}{8cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -18,6 +18,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.iaudio}} \newcommand{\firmwarefilename}{\fname{rockbox.iaudio}}
\newcommand{\firmwareextension}{\fname{iaudio}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.mi4}} \newcommand{\firmwarefilename}{\fname{rockbox.mi4}}
\newcommand{\firmwareextension}{\fname{mi4}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{ajbrec.ajz}} \newcommand{\firmwarefilename}{\fname{ajbrec.ajz}}
\newcommand{\firmwareextension}{\fname{ajz}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{flash storage} \newcommand{\disk}{flash storage}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{ajbrec.ajz}} \newcommand{\firmwarefilename}{\fname{ajbrec.ajz}}
\newcommand{\firmwareextension}{\fname{ajz}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{flash storage} \newcommand{\disk}{flash storage}

View file

@ -18,6 +18,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{archos.mod}} \newcommand{\firmwarefilename}{\fname{archos.mod}}
\newcommand{\firmwareextension}{\fname{mod}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -18,6 +18,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{ajbrec.ajz}} \newcommand{\firmwarefilename}{\fname{ajbrec.ajz}}
\newcommand{\firmwareextension}{\fname{ajz}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -17,6 +17,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{ajbrec.ajz}} \newcommand{\firmwarefilename}{\fname{ajbrec.ajz}}
\newcommand{\firmwareextension}{\fname{ajz}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -18,6 +18,7 @@
%For use when referring to the player. E.g. the \daps\ capacity ... %For use when referring to the player. E.g. the \daps\ capacity ...
\newcommand{\daps}{player's} \newcommand{\daps}{player's}
\newcommand{\firmwarefilename}{\fname{rockbox.iaudio}} \newcommand{\firmwarefilename}{\fname{rockbox.iaudio}}
\newcommand{\firmwareextension}{\fname{iaudio}}
\newcommand{\screenshotsize}{4cm} \newcommand{\screenshotsize}{4cm}
\newcommand{\disk}{hard disk} \newcommand{\disk}{hard disk}

View file

@ -1,4 +1,4 @@
\subsection{Text Editor} \subsection{\label{sec:text_editor}Text Editor}
This plugin allows you to view and edit simple text documents on your DAP. This plugin allows you to view and edit simple text documents on your DAP.
You can view files by using \setting{Open with} from the You can view files by using \setting{Open with} from the
\setting{Context Menu} (see \reference{ref:Contextmenu}). \setting{Context Menu} (see \reference{ref:Contextmenu}).