Skip to main content

Theme

Type Alias Theme 

Source
pub type Theme = NewTheme;
Expand description

Preferred alias for NewTheme.

Aliased Type§

pub struct Theme {
Show 18 fields pub background: Color, pub foreground: Color, pub muted_foreground: Color, pub palette: Palette, pub grid_color: Color, pub grid_width: f32, pub show_grid: bool, pub base_font_size: f32, pub title_font_size: f32, pub subtitle_font_size: f32, pub label_font_size: f32, pub tick_font_size: f32, pub legend_font_size: f32, pub font_family: String, pub axis_width: f32, pub line_width: f32, pub point_size: f32, pub color_scale: Option<ColorScale>,
}

Fields§

§background: Color

Background color.

§foreground: Color

Foreground color (text, axes, ticks).

§muted_foreground: Color

Muted foreground color (subtitles, secondary text).

§palette: Palette

Color palette for data series.

§grid_color: Color

Grid line color.

§grid_width: f32

Grid line width.

§show_grid: bool

Whether to show grid lines.

§base_font_size: f32

Base font size from which all others are derived.

§title_font_size: f32

Title font size (base * 1.2).

§subtitle_font_size: f32

Subtitle font size (base * 1.1).

§label_font_size: f32

Axis label font size (base * 1.0).

§tick_font_size: f32

Tick label font size (base * 0.9).

§legend_font_size: f32

Legend font size (base * 0.9).

§font_family: String

Font family.

§axis_width: f32

Axis line width.

§line_width: f32

Default data line width.

§point_size: f32

Default scatter point size (area in px²).

§color_scale: Option<ColorScale>

Optional color scale for heatmaps (default: viridis).