using Content.Client.Stylesheets.SheetletConfigs; using Content.Client.Stylesheets.Stylesheets; using Content.Client.UserInterface.Controls; using Robust.Client.Graphics; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; using static Content.Client.Stylesheets.StylesheetHelpers; namespace Content.Client.Stylesheets.NTSheetlets; /// Not NTHeading because NanoHeading is the name of the element [CommonSheetlet] public sealed class NanoHeadingSheetlet : Sheetlet { public override StyleRule[] GetRules(NanotrasenStylesheet sheet, object config) { INanoHeadingConfig nanoHeadingCfg = sheet; var nanoHeadingTex = sheet.GetTexture(nanoHeadingCfg.NanoHeadingPath); var nanoHeadingBox = new StyleBoxTexture { Texture = nanoHeadingTex, PatchMarginRight = 10, PatchMarginTop = 10, ContentMarginTopOverride = 2, ContentMarginLeftOverride = 10, PaddingTop = 4, }; nanoHeadingBox.SetPatchMargin(StyleBox.Margin.Left | StyleBox.Margin.Bottom, 2); return [ E().ParentOf(E()).Panel(nanoHeadingBox), ]; } }