diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2021-07-12 08:28:29 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2021-07-12 08:28:29 +0300 |
commit | 69f875e1171ae83b6737fc988411afd14c8c4282 (patch) | |
tree | 09a2115640faf4f33bd3193d7f2a8ede0ddaffa0 /object_collection_manager/ui.py | |
parent | eba3a31f8bed7087db9a026514ffe85bea0a64c0 (diff) |
Collection Manager: CM popup UX fixes. Task: T69577
Renamed the Set Collection Operator to Send Objects To Collection
and updated it's tooltip.
Changed it's icon for a collection with no objects
from the grid icon to the import icon for (hopefully)
better discoverability.
Updated the filter bar's invert icon to use the standard arrows icon.
Changed the filter collections by selected objects icon to the selected
objects icon used by the send objects to collection operator.
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r-- | object_collection_manager/ui.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index 68da7323..b7bc1b32 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -249,7 +249,7 @@ class CollectionManager(Operator): collection = context.view_layer.layer_collection.collection - icon = 'GRID' + icon = 'IMPORT' if collection.objects: icon = 'MESH_CUBE' @@ -275,7 +275,7 @@ class CollectionManager(Operator): ) # add operator - prop = row_setcol.operator("view3d.set_collection", text="", + prop = row_setcol.operator("view3d.send_objects_to_collection", text="", icon=icon, emboss=False) prop.is_master_collection = True prop.collection_name = 'Scene Collection' @@ -705,11 +705,11 @@ class CM_UL_items(UIList): add_vertical_separator_line(row) - # add set_collection op + # add send_objects_to_collection op set_obj_col = row.row() set_obj_col.operator_context = 'INVOKE_DEFAULT' - icon = 'GRID' + icon = 'IMPORT' if collection.objects: icon = 'MESH_CUBE' @@ -725,7 +725,7 @@ class CM_UL_items(UIList): set_obj_col.enabled = False - prop = set_obj_col.operator("view3d.set_collection", text="", + prop = set_obj_col.operator("view3d.send_objects_to_collection", text="", icon=icon, emboss=False) prop.is_master_collection = False prop.collection_name = item.name @@ -863,12 +863,10 @@ class CM_UL_items(UIList): subrow = row.row(align=True) subrow.prop(self, "filter_name", text="") - - icon = 'ZOOM_OUT' if self.use_filter_invert else 'ZOOM_IN' - subrow.prop(self, "use_filter_invert", text="", icon=icon) + subrow.prop(self, "use_filter_invert", text="", icon='ARROW_LEFTRIGHT') subrow = row.row(align=True) - subrow.prop(self, "filter_by_selected", text="", icon='SNAP_VOLUME') + subrow.prop(self, "filter_by_selected", text="", icon='STICKY_UVS_LOC') if context.preferences.addons[__package__].preferences.enable_qcd: subrow.prop(self, "filter_by_qcd", text="", icon='EVENT_Q') |