Exemple #1
0
        public void ApplyWindowStyle(WindowStyle style)
        {
            ApplyWidgetStyle(style);

            if (style.TitleStyle != null)
            {
                _titleLabel.ApplyLabelStyle(style.TitleStyle);
            }

            if (style.CloseButtonStyle != null)
            {
                CloseButton.ApplyImageButtonStyle(style.CloseButtonStyle);
            }
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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;
        }