Esempio n. 1
0
        protected override void OnParametersSet()
        {
            _neutralPrimary  = StyleContext.GetColorOrDefault(VariableNames.NeutralPrimary, default);
            _backgroundColor = StyleContext.GetColorOrDefault(VariableNames.ButtonBackground, VariableNames.NeutralQuaternary);

            _iconColor = StyleContext.TryGetColor(VariableNames.ButtonIcon, out var iconColor)
                ? iconColor
                : ComponentHelper.GetForegroundColor(Appearance, _backgroundColor, _neutralPrimary);
        }