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: ColorBackground color.
foreground: ColorForeground color (text, axes, ticks).
muted_foreground: ColorMuted foreground color (subtitles, secondary text).
palette: PaletteColor palette for data series.
grid_color: ColorGrid line color.
grid_width: f32Grid line width.
show_grid: boolWhether to show grid lines.
base_font_size: f32Base font size from which all others are derived.
title_font_size: f32Title font size (base * 1.2).
subtitle_font_size: f32Subtitle font size (base * 1.1).
label_font_size: f32Axis label font size (base * 1.0).
tick_font_size: f32Tick label font size (base * 0.9).
legend_font_size: f32Legend font size (base * 0.9).
font_family: StringFont family.
axis_width: f32Axis line width.
line_width: f32Default data line width.
point_size: f32Default scatter point size (area in px²).
color_scale: Option<ColorScale>Optional color scale for heatmaps (default: viridis).