NanoHeading.cs 756 B

12345678910111213141516171819202122232425262728293031
  1. using Content.Client.Stylesheets;
  2. using Robust.Client.UserInterface.Controls;
  3. namespace Content.Client.UserInterface.Controls
  4. {
  5. public sealed class NanoHeading : Container
  6. {
  7. private readonly Label _label;
  8. private readonly PanelContainer _panel;
  9. public NanoHeading()
  10. {
  11. _panel = new PanelContainer
  12. {
  13. Children = {(_label = new Label
  14. {
  15. StyleClasses = {StyleNano.StyleClassLabelHeading}
  16. })}
  17. };
  18. AddChild(_panel);
  19. HorizontalAlignment = HAlignment.Left;
  20. }
  21. public string? Text
  22. {
  23. get => _label.Text;
  24. set => _label.Text = value;
  25. }
  26. }
  27. }