using System; using Gwen.Control; namespace Gwen.ControlInternal { /// /// Header of CollapsibleCategory. /// public class CategoryHeaderButton : Button { /// /// Initializes a new instance of the class. /// /// Parent control. public CategoryHeaderButton(Base parent) : base(parent) { ShouldDrawBackground = false; IsToggle = true; Alignment = Pos.Center; TextPadding = new Padding(3, 0, 3, 0); } /// /// Updates control colors. /// public override void UpdateColors() { if (IsDepressed || ToggleState) TextColor = Skin.Colors.Category.Header_Closed; else TextColor = Skin.Colors.Category.Header; } } }