pub struct Theme {Show 17 fields
pub base: Option<String>,
pub font_family: Option<String>,
pub text: Option<Rgba>,
pub background: Option<Rgba>,
pub surface: Option<Rgba>,
pub panel: Option<Rgba>,
pub accent: Option<Rgba>,
pub title_size: Option<f32>,
pub subtitle_size: Option<f32>,
pub body_size: Option<f32>,
pub caption_size: Option<f32>,
pub label_size: Option<f32>,
pub margin: Option<f32>,
pub transition: Option<Transition>,
pub still_seconds: Option<f64>,
pub text_seconds: Option<f64>,
pub fade_seconds: Option<f64>,
}Expand description
How text, panels and timings look. Parts left out come from the base theme. Sizes are fractions of the canvas’s shorter side, so a theme looks the same on wide and tall canvases.
Fields§
§base: Option<String>The built-in theme this one changes. Default clean-dark.
font_family: Option<String>Font family, as the font names it. Unset, text draws in the first font an export registers.
text: Option<Rgba>Text color.
background: Option<Rgba>The canvas background.
surface: Option<Rgba>What title and end cards are drawn on.
panel: Option<Rgba>The boxes behind labels, lower thirds and boxed captions.
accent: Option<Rgba>A highlight: a lower third’s bar.
title_size: Option<f32>Title size.
subtitle_size: Option<f32>Subtitle size.
body_size: Option<f32>Body text size.
caption_size: Option<f32>Caption size.
label_size: Option<f32>Label size: a grid cell’s.
margin: Option<f32>The space kept clear at the canvas’s edges.
transition: Option<Transition>The transition a slideshow, or a sequence asking for theme, puts between children.
still_seconds: Option<f64>How long a still shows when nothing says, in seconds.
text_seconds: Option<f64>How long a card or text shows when nothing says, in seconds.
fade_seconds: Option<f64>How long text and cards fade in and out, in seconds.