It has been noticed by many users that the small icons displayed in the left column of directory listings are rather ugly and not distinctive enough. They are found in the Apache-traditional /icons directory but may not be present on your computer if you do not use Apache.
You can now provide your own icons. All you have to do is to provide information about these icons through some parameters in lxr.conf.
Any graphic file may be used as an icon. However, we suggest not to exceed a 48x48 size, lest the icon would impose the line height.
Create a directory under DocumentRoot and put (or link) the icons inside.
The following parameters are best located in the Global configuration section, File content subsection.
Tell the location of your icon directory in 'iconfolder'
parameter:
Remember this is a path used by HTML code. See this page for advice.
Take care to end the directory name with a slash character
(/
).
Define the name of files from the preceding directory for certain "generic" types:
'graphicfile'
defined in lxr.conf.
Build the association rules between a file extension and
an icon file in parameter 'icons'
:
is a Perl pattern (regexp) without delimiters nor anchors (they are provided by LXR) matching a set of extensions.
is the icon file to be used for this set.
Example:
KDE provides nice icons with the oxygen theme. The 22x22 size is chosen. To use them, grant access to the icons directory with a symbolic link:
Edit the lxr.conf file.
Go to the Global configuration section, File content subsection
and insert the following near 'graphicfile'
parameter: