# 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.

<table><thead><tr><th>Code</th><th>Description</th></tr></thead><tbody><tr><td>{fl}<br>{gfl}</td><td><p><strong>Format lock control</strong></p><p>Displays the format lock icon (<img src="https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-fffedf3fb3572f5302bc766c3cda26119c8d575c%2Fformat_lock.png?alt=media" alt="">). This icon indicates the current state of the <a href="../../basic_concepts/folder_options/locking_the_format">format lock</a>, and clicking it will toggle the lock on and off. Hovering the mouse over the icon displays a tooltip indicating <a href="../../basic_concepts/folder_options/identifying_the_current_format">how the current folder format was derived</a>.</p><p><strong>{gfl}</strong> displays a grayscale version of the icon but otherwise behaves identically.</p></td></tr><tr><td>{i:dir}<br>{i:file}<br>{i:<em>&#x3C;ext></em>}<br>{i:<em>&#x3C;file></em>}</td><td><p><strong>Icons</strong></p><p>Lets you display an arbitrary icon in the status bar. For example, instead of status bar text that reads <em>Folders: xxx / yyy</em> you could display a generic folder icon.</p><pre><code>{{:media:status_bar_icons.png?nolink|}}
{i:dir} {sd}/{td} {i:file} {sf}/{tf} {i:.mp3} {smp3}/{tmp3}
</code></pre><p>You may want this to save space on the status bar or for purely cosmetic reasons.</p><p>You can specify a generic folder icon (<code>{i:dir}</code>), a generic file icon (<code>{i:file}</code>), or an icon for a specific file type (e.g. <code>{i:.mp3}</code> for an MP3 file icon).</p><p>You can also use your own custom icon or image by providing the path and filename of the icon. For example, <code>{i:/mypictures/myicon.png}</code>. The image file will be automatically scaled down to fit the status bar.</p></td></tr><tr><td>{bg}</td><td><p><strong>Bar graphs</strong></p><p>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.</p><p>See the page on <a href="bar_graphs_and_percentages">bar graphs</a> for full details on configuring the graphs.</p></td></tr></tbody></table>
