public void ApplyWindowStyle(WindowStyle style) { ApplyWidgetStyle(style); if (style.TitleStyle != null) { _titleLabel.ApplyLabelStyle(style.TitleStyle); } if (style.CloseButtonStyle != null) { CloseButton.ApplyImageButtonStyle(style.CloseButtonStyle); } }
public void ApplyTreeNodeStyle(TreeStyle style) { ApplyWidgetStyle(style); if (style.MarkStyle != null) { _mark.ApplyImageButtonStyle(style.MarkStyle); _label.ApplyLabelStyle(style.LabelStyle); } TreeStyle = style; SelectionBackground = style.SelectionBackground; SelectionHoverBackground = style.SelectionHoverBackground; }
public void ApplyImageTextButtonStyle(ImageTextButtonStyle style) { ApplyButtonStyle(style); if (style.ImageStyle != null) { _image.ApplyPressableImageStyle(style.ImageStyle); } if (style.LabelStyle != null) { _textBlock.ApplyLabelStyle(style.LabelStyle); } ImageTextSpacing = style.ImageTextSpacing; }