Пример #1
0
 protected abstract void GenerateStepsVariantStyles(StringBuilder sb, Theme theme, string variant, string inBackgroundColor, ThemeStepsOptions stepsOptions);
Пример #2
0
 protected abstract void GenerateStepsStyles(StringBuilder sb, Theme theme, ThemeStepsOptions stepsOptions);
Пример #3
0
        protected virtual void GenerateStepsColorVariables(Theme theme, string variant, string inColor, ThemeStepsOptions options)
        {
            var argbColor = ParseColor(inColor);

            if (argbColor.IsEmpty)
            {
                return;
            }

            var color = ToHex(argbColor);

            variables[ThemeVariables.VariantStepsItemIcon(variant)]    = color;
            variables[ThemeVariables.VariantStepsItemIconYiq(variant)] = ToHex(Contrast(theme, color));
            variables[ThemeVariables.VariantStepsItemText(variant)]    = color;
        }