mirror of
https://github.com/dnwSilver/tld.git
synced 2025-04-18 02:56:19 +00:00
33 lines
912 B
C#
33 lines
912 B
C#
using TUI.Controls.Components;
|
|
using TUI.Engine.Attributes.Orientations;
|
|
using TUI.Engine.Containers;
|
|
using TUI.Engine.Nodes;
|
|
using TUI.Engine.Theme;
|
|
|
|
namespace TUI.Controls.Containers;
|
|
|
|
public class DashboardContainer : ContainerBase
|
|
{
|
|
private readonly Nodes _children = new();
|
|
private readonly ContentContainer _content;
|
|
|
|
public DashboardContainer()
|
|
{
|
|
// var panel = new PanelComponent("Dependencies ".Info() + Symbols.Node.Colorized());
|
|
var panel = new PanelComponent("Dependencies".Info());
|
|
_content = new ContentContainer();
|
|
_content.SetOrientationVertical();
|
|
SetOrientationVertical();
|
|
|
|
_children.Add(panel);
|
|
_children.Add(_content);
|
|
}
|
|
|
|
public void AddChildren(IContainer node)
|
|
{
|
|
node.SetFixed(Orientation.Vertical, 1);
|
|
_content.AddChildren(node);
|
|
}
|
|
|
|
public override Nodes GetNodes() => _children;
|
|
} |