예제 #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;
        }