Пример #1
0
        protected virtual void ApplyTheme()
        {
            ContainedButtonThemer.ApplyScheme(_buttonScheme, Control);

            // Colors have to be re-applied to Character spacing
            _buttonLayoutManager?.UpdateText();
        }
        protected virtual void ApplyTheme()
        {
            // Colors have to be re-applied to Character spacing
            _buttonLayoutManager?.UpdateText();

            Color textColor = Element.TextColor;

            if (textColor.IsDefault)
            {
                Control.SetTitleColor(MaterialColors.Light.DisabledColor, UIControlState.Disabled);
            }
            else
            {
                Control.SetTitleColor(textColor.ToUIColor(), UIControlState.Disabled);
            }
        }