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