Commit: ac9ec52e9e26544f15ed1f8596d46b82f2577a61 Author: Julian Eisel Date: Wed Oct 6 11:42:47 2021 +0200 Branches: master https://developer.blender.org/rBac9ec52e9e26544f15ed1f8596d46b82f2577a61
UI: Draw tree-views (e.g. asset catalogs) in a box Makes things look more appealing visually. Plus it's a way to visually group the tree rows together, which can be important if there are more widgets surrounding the tree. =================================================================== M source/blender/editors/interface/tree_view.cc =================================================================== diff --git a/source/blender/editors/interface/tree_view.cc b/source/blender/editors/interface/tree_view.cc index 28c757ddc79..8bd2be7dc77 100644 --- a/source/blender/editors/interface/tree_view.cc +++ b/source/blender/editors/interface/tree_view.cc @@ -80,7 +80,8 @@ void AbstractTreeView::build_layout_from_tree(const TreeViewLayoutBuilder &build { uiLayout *prev_layout = builder.current_layout(); - uiLayoutColumn(prev_layout, true); + uiLayout *box = uiLayoutBox(prev_layout); + uiLayoutColumn(box, true); foreach_item([&builder](AbstractTreeViewItem &item) { builder.build_row(item); }, IterOptions::SkipCollapsed); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs