UI: Use "unassigned" icon for assets in modifier and node add menus

Use the same icon as in the asset browser "unassigned" item for
unassigned node group assets exposed in the modifier or node
add menus, helping to make the connection to the asset browser.
The downside is potentially drawing unnecessary attention to these
categories, but ideally they won't exist for most users anyway (since
the assets should be in proper catalogs).
This commit is contained in:
Hans Goudey
2023-09-23 10:48:43 -04:00
parent 4d07c08cc2
commit c1954f9846
2 changed files with 5 additions and 2 deletions

View File

@@ -195,7 +195,10 @@ static void root_catalogs_draw(const bContext *C, Menu *menu)
if (!tree.unassigned_assets.is_empty()) {
uiItemS(layout);
uiItemM(layout, "OBJECT_MT_add_modifier_unassigned_assets", IFACE_("Unassigned"), ICON_NONE);
uiItemM(layout,
"OBJECT_MT_add_modifier_unassigned_assets",
IFACE_("Unassigned"),
ICON_FILE_HIDDEN);
}
}

View File

@@ -216,7 +216,7 @@ static void add_root_catalogs_draw(const bContext *C, Menu *menu)
if (!tree.unassigned_assets.is_empty()) {
uiItemS(layout);
uiItemM(layout, "NODE_MT_node_add_unassigned_assets", IFACE_("Unassigned"), ICON_NONE);
uiItemM(layout, "NODE_MT_node_add_unassigned_assets", IFACE_("Unassigned"), ICON_FILE_HIDDEN);
}
}