This adds support for drawing icon buttons as a row in a popup menu. This is needed for drawing collection color tag icons in a row in the outliner context menu.
A few issues still exist, but I would like some initial review now that it mostly works.
- The icons do not draw aligned with the text labels. This is easy to fix, but the hover highlight is still drawn incorrectly.
- This works well when creating row icon buttons with an operator_enum, but manually creating the row elements doesn't draw an initial offset blank icon.
I have been testing on soc-2020-outliner with this small change to space_outliner.py
- layout.operator_enum("outliner.collection_color_tag_set", "color")
+ row = layout.row(align=True)
+ row.operator_enum("outliner.collection_color_tag_set", "color", icon_only=True)
