示例#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("}");
     }
 }
示例#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;
        }
示例#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("}");
 }
示例#4
0
 protected abstract void GenerateProgressStyles(StringBuilder sb, Theme theme, ThemeProgressOptions options);