Skip to content
ChartForgeX
Class

VisualThemeBuilder

ChartForgeX.Themes

Namespace
ChartForgeX.Themes
Assembly
ChartForgeX
Modifiers
sealed

Builds one immutable paired theme. Mutable values are never retained by the resulting theme.

Inheritance

  • object
  • VisualThemeBuilder

Usage

Explore 34 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 32

Constructors

VisualThemeBuilder 2 overloads
public VisualThemeBuilder() #

Creates a builder from the canonical theme.

public VisualThemeBuilder(VisualTheme theme) #

Creates an independent editable copy of an existing theme.

Parameters

theme ChartForgeX.Themes.VisualTheme required

Methods

public VisualTheme Build() #

Validates and snapshots all colors, typography, geometry, effects and per-kind series defaults.

public VisualThemeBuilder ClearSeries(ChartSeriesKind kind) #

Removes the defaults for one series kind, restoring the global theme values for it.

Parameters

kind ChartForgeX.Core.ChartSeriesKind required
The series kind.

Returns

VisualThemeBuilder The current builder.
public VisualDesignTokens Colors(ThemeMode mode) #

Gets the editable palette for a mode. ThemeMode.Auto edits the light palette, which static output paints for it.

Parameters

mode ChartForgeX.ThemeMode required
public VisualThemeBuilder Series(ChartSeriesKind kind, Action<VisualSeriesDefaults> configure) #

Configures the defaults for one series kind, such as the width and markers of every line.

Parameters

kind ChartForgeX.Core.ChartSeriesKind required
The series kind.
configure System.Action<ChartForgeX.Themes.VisualSeriesDefaults> required
Edits the kind's defaults; settings that do not apply to the kind fail in VisualThemeBuilder.Build.

Returns

VisualThemeBuilder The current builder.

Properties

public VisualDesignTokens Light { get; } #

Gets the independently editable light color palette.

public VisualDesignTokens Dark { get; } #

Gets the independently editable dark color palette.

public VisualTypography Typography { get; set; } #

Gets or sets the complete shared font scale.

public double Spacing { get; set; } #

Gets or sets the standard layout gap.

public double SeriesStrokeWidth { get; set; } #

Gets or sets the data-line width.

public double MarkerRadius { get; set; } #

Gets or sets the point radius.

public double AreaOpacity { get; set; } #

Gets or sets the area fill opacity.

public double BarRadius { get; set; } #

Gets or sets the bar corner radius.

public double MaximumBarWidth { get; set; } #

Gets or sets the maximum regular bar thickness in drawing pixels, default 64.

public double GridStrokeWidth { get; set; } #

Gets or sets the plot-guide width.

public double AxisStrokeWidth { get; set; } #

Gets or sets the axis width.

public double CardRadius { get; set; } #

Gets or sets the outer card corner radius.

public double PlotRadius { get; set; } #

Gets or sets the plot surface corner radius.

public double CardShadowOpacity { get; set; } #

Gets or sets the card shadow opacity.

public ChartColor CardShadowColor { get; set; } #

Gets or sets the card shadow color, retaining alpha.

public double GaugeStrokeWidth { get; set; } #

Gets or sets the gauge value and track width.

public double GaugeBandWidth { get; set; } #

Gets or sets the gauge threshold band width.