mirror of https://github.com/buggins/dlangui.git
Add a little padding to TreeItem's label
So that it would not stick too close to the icon
This commit is contained in:
parent
8e9a52dbfa
commit
e9446b2733
|
@ -608,6 +608,7 @@ class TreeItemWidget : HorizontalLayout {
|
|||
_label = new TextWidget("label", _item.text);
|
||||
_label.styleId = STYLE_TREE_ITEM_LABEL;
|
||||
_label.setState(State.Parent);
|
||||
_label.padding(Rect(5, 0, 0, 0));
|
||||
_body.addChild(_label);
|
||||
// append children
|
||||
addChild(_tab);
|
||||
|
|
Loading…
Reference in New Issue