Add tree widget

This commit is contained in:
Matt Constable
2021-01-02 09:01:16 +00:00
committed by GitHub
parent 179e243214
commit b136d0299b
16 changed files with 467 additions and 16 deletions

View File

@ -48,7 +48,7 @@ namespace Spectre.Console.Rendering
var missing = Width - length;
if (missing > 0)
{
line.Add(new Segment(new string(' ', missing)));
line.Add(Segment.Padding(missing));
}
}
@ -59,7 +59,7 @@ namespace Spectre.Console.Rendering
{
lines.Add(new SegmentLine
{
new Segment(new string(' ', Width)),
Segment.Padding(Width),
});
}
}