using Content.Client.UserInterface.Controls.FancyTree; using Robust.Client.Graphics; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; using static Content.Client.Stylesheets.StylesheetHelpers; namespace Content.Client.Stylesheets.Sheetlets; [CommonSheetlet] public sealed class FancyTreeSheetlet : Sheetlet { public override StyleRule[] GetRules(PalettedStylesheet sheet, object config) { return [ E() .Identifier(TreeItem.StyleIdentifierTreeButton) .Class(TreeItem.StyleClassEvenRow) .Prop(ContainerButton.StylePropertyStyleBox, new StyleBoxFlat(sheet.SecondaryPalette.BackgroundLight)), E() .Identifier(TreeItem.StyleIdentifierTreeButton) .Class(TreeItem.StyleClassOddRow) .Prop(ContainerButton.StylePropertyStyleBox, new StyleBoxFlat(sheet.SecondaryPalette.Background)), E() .Identifier(TreeItem.StyleIdentifierTreeButton) .Class(TreeItem.StyleClassSelected) .Prop(ContainerButton.StylePropertyStyleBox, new StyleBoxFlat(sheet.PrimaryPalette.Element)), E() .Identifier(TreeItem.StyleIdentifierTreeButton) .Pseudo(ContainerButton.StylePseudoClassHover) .Prop(ContainerButton.StylePropertyStyleBox, new StyleBoxFlat(sheet.PrimaryPalette.HoveredElement)), ]; } }