Add a color tag to collections and allow tagging from the outliner context menu.
This could be split into two patches if needed, one for the actual collection colors and another for the outliner and menus integration.
This adds a color tagging mechanism to collections similar to those for coloring folders, layers, and other organization units in other software. There are 8 colors and none which is default. The colors may be changed in the user preferences.
There is a simple outliner context menu function to apply a color tag to all selected collections.
The collection icon is now filled in to better show the color. There may be a few instances where the old icon should be replaced with the new icon.
The new icon is used in user interface menus
- Link to collection, move to collection, add collection instance, instance search, remove collection.
This patch depends on and includes the changes in D8317: UI: Fix drawing of aligned icon buttons in menu rows for drawing the color tagging icons in the outliner context menu.
- Pick colors for all themes. The default theme colors are generally okay. They may need some slight changes.
- There are a few - 1 instances in the code to get the proper color index. This could be solved by making the none color tag have the value of -1 and do versioning to set all the collection color tags to -1.
- Use new filled collection icon in the user preferences Collection Colors panel header