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:
parent
4ab8212e1a
commit
ac9ec52e9e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue