UI: Use Collection icon for New Collection in Outliner
Also temporarily bring back the toggle to search, since it's off by default.
This commit is contained in:
@@ -38,11 +38,15 @@ class OUTLINER_HT_header(Header):
|
||||
layout.prop(space, "display_mode", icon_only=True)
|
||||
|
||||
if display_mode in {'VIEW_LAYER'}:
|
||||
layout.operator("outliner.collection_new", text="", icon="ZOOMIN").nested = True
|
||||
layout.operator("outliner.collection_new", text="", icon="GROUP").nested = True
|
||||
|
||||
layout.separator_spacer()
|
||||
|
||||
layout.prop(space, "filter_text", icon="VIEWZOOM", text="")
|
||||
row = layout.row(align=True)
|
||||
row.prop(space, "use_filter_search", text="")
|
||||
sub = row.row(align=True)
|
||||
sub.prop(space, "filter_text", text="")
|
||||
sub.enabled = space.use_filter_search
|
||||
|
||||
layout.separator_spacer()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user