[See Also: Color Folder Icons]
Sometimes it's useful to assign different colors and text styles to files and folders so that they stand out from normal items. This post explains how to create a right-click context menu to do just that.
The result will look something like this:
Note that Directory Opus 10 comes with something similar as part of its default toolbars:
If you are using Opus 10 and are happy enough with the menu being tucked away behind the Properties button then you don't need to change anything at all.
Before we begin, note that you can add, remove and modify the available colors and text styles via Settings > Preferences / Favorites and Recent / File and Folder Labels. There you can also see and manage all of your labelled items from a central place.
Here's how to create a context menu that allows you to right-click things to set their colors:
- Go to Settings -> File Types and edit the All Files and Folders type near the top.
- Go to the Context Menu tab, click New and set the Type drop-down to Sub-menu. Name the menu Set Label (or whatever you want) and click OK.
- Click New again and this time set the Type drop-down to Run an Opus function. Enter Properties SETLABEL as the function and click OK.
- You can move the two new items around in the menu as you like. Just make sure the sub-menu stays directly above the Properties SETLABEL command, so they are indented like in the screenshot below.
- If there are any other items below the command then they will initially be indented and inside of the sub-menu as well. To move them out of the sub-menu, right-click the first item after the command and select Decrease Indent to end the sub-menu.
You should end up with something like this:Directory Opus 9
This guide has been updated for Opus 10 and above. If you are still using Opus 9, there are a few differences:
- First, the command to use is Properties SETCOLOR instead of Properties SETLABEL. (Opus 10 recognises the old command for compatibility with old configurations, but Opus 9 won't recognise the newer command.)
- Second, in Opus 9 you can only apply colors/labels to folders, not to files. Opus 10 added the ability to apply them to both, as well as the ability to re-color icons as well as, or instead of, the names themselves.