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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user