Exemple #1
0
 protected virtual void GenerateProgressStyles(StringBuilder sb, Theme theme, ThemeProgressOptions options)
 {
     if (!string.IsNullOrEmpty(options?.PageProgressDefaultColor))
     {
         sb
         .Append($".b-page-progress .b-page-progress-indicator").Append("{")
         .Append($"background-color: {options.PageProgressDefaultColor};")
         .AppendLine("}");
     }
 }
Exemple #2
0
        protected virtual void GenerateProgressColorVariables(Theme theme, string variant, string inColor, ThemeProgressOptions options)
        {
            var inArgbColor = ParseColor(inColor);

            if (inArgbColor.IsEmpty)
            {
                return;
            }

            var color = ToHex(inArgbColor);

            variables[ThemeVariables.VariantPageProgressIndicator(variant)] = color;
        }
Exemple #3
0
 protected virtual void GenerateProgressVariantStyles(StringBuilder sb, Theme theme, string variant, string inBackgroundColor, ThemeProgressOptions progressOptions)
 {
     sb
     .Append($".b-page-progress .b-page-progress-indicator.b-page-progress-indicator-{variant}").Append("{")
     .Append($"background-color: {Var( ThemeVariables.VariantPageProgressIndicator( variant ) )};")
     .AppendLine("}");
 }
Exemple #4
0
 protected abstract void GenerateProgressStyles(StringBuilder sb, Theme theme, ThemeProgressOptions options);