~~Title: Codes for graphical elements ~~
The following codes are used to display various graphical elements in the status bar. Some (like the **{i}** code for icons) are purely for cosmetic reasons, and others have more functional uses.
$$ Code
$$ Description
$$ {fl}\\
{gfl}
$$ **Format lock control**
Displays theĀ format lock icon ({{:media:format_lock.png?nolink|}}). This icon indicates the current state of the [[:basic_concepts:folder_options:locking_the_format|format lock]], and clicking it will toggle the lock on and off. Hovering the mouse over the icon displays a tooltip indicating [[:basic_concepts:folder_options:identifying_the_current_format|how the current folder format was derived]].
**{gfl}** displays a grayscale version of the icon but otherwise behaves identically.
$$ {i:dir}\\
{i:file}\\
{i:////}\\
{i:////}\\
$$ **Icons**
Lets you display an arbitrary icon in the status bar. For example, instead of status bar text that reads //Folders: xxx / yyy// you could display a genericĀ folder icon.
{{:media:status_bar_icons.png?nolink|}}
{i:dir} {sd}/{td} {i:file} {sf}/{tf} {i:.mp3} {smp3}/{tmp3}
You may want this to save space on the status bar or for purely cosmetic reasons.
You can specify a generic folder icon (`{i:dir}`), a generic file icon (`{i:file}`), or an icon for a specific file type (e.g. `{i:.mp3}` for an MP3 file icon).
You can also use your own custom icon or image by providing the path and filename of the icon. For example, `{i:/mypictures/myicon.png}`. The image file will be automatically scaled down to fit the status bar.
$$ {bg}
$$ **Bar graphs**
Bar graphs can be used to visually represent a value as a percentage. The default behaviour of bar graphs is to display the percentage of disk space used on the current drive, but using the various parameters for the {bg} code you can configure a bar graph to represent any other status bar value as a percentage of either another value or an absolute amount.
See the page on [[bar_graphs_and_percentages|bar graphs]] for full details on configuring the graphs.