2021-06-09 22:19:39 +02:00
|
|
|
using Content.Client.Stylesheets;
|
2019-10-18 14:28:24 +02:00
|
|
|
using Robust.Client.UserInterface.Controls;
|
|
|
|
|
|
2022-09-11 20:42:12 -07:00
|
|
|
namespace Content.Client.UserInterface.Controls
|
2019-10-18 14:28:24 +02:00
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class NanoHeading : Container
|
2019-10-18 14:28:24 +02:00
|
|
|
{
|
|
|
|
|
private readonly Label _label;
|
|
|
|
|
private readonly PanelContainer _panel;
|
|
|
|
|
|
|
|
|
|
public NanoHeading()
|
|
|
|
|
{
|
|
|
|
|
_panel = new PanelContainer
|
|
|
|
|
{
|
|
|
|
|
Children = {(_label = new Label
|
|
|
|
|
{
|
2020-04-04 15:10:51 +02:00
|
|
|
StyleClasses = {StyleNano.StyleClassLabelHeading}
|
2019-10-18 14:28:24 +02:00
|
|
|
})}
|
|
|
|
|
};
|
|
|
|
|
AddChild(_panel);
|
|
|
|
|
|
2021-02-21 12:38:56 +01:00
|
|
|
HorizontalAlignment = HAlignment.Left;
|
2019-10-18 14:28:24 +02:00
|
|
|
}
|
|
|
|
|
|
2021-03-10 14:48:29 +01:00
|
|
|
public string? Text
|
2019-10-18 14:28:24 +02:00
|
|
|
{
|
|
|
|
|
get => _label.Text;
|
|
|
|
|
set => _label.Text = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|