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:
Julian Eisel 2021-10-06 11:42:47 +02:00
parent 4ab8212e1a
commit ac9ec52e9e
1 changed files with 2 additions and 1 deletions

View File

@ -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);