pub struct Theme {Show 22 fields
pub id: String,
pub label: String,
pub dark: bool,
pub flat: bool,
pub radius: u32,
pub font_sans: String,
pub font_display: String,
pub bg: String,
pub card: String,
pub border: String,
pub border_strong: String,
pub text: String,
pub muted: String,
pub faint: String,
pub accent: String,
pub accent_soft: Option<String>,
pub grid_year: String,
pub grid_month: String,
pub track: String,
pub release: String,
pub ctx_area: String,
pub ctx_line: String,
}Expand description
A fully-resolved theme. String colours are emitted verbatim into CSS/SVG.
Fields§
§id: String§label: String§dark: boolDark background: drives color-scheme, shadow choice, avatar lightness.
flat: boolSolid per-row band bars + a sans-serif chart font (the Wikipedia look).
radius: u32Corner radius for cards/controls, in pixels.
font_sans: String§font_display: String§bg: String§card: String§border: String§border_strong: String§text: String§muted: String§faint: String§accent: String§accent_soft: Option<String>Optional explicit accent-soft; derived from accent when absent.
grid_year: String§grid_month: String§track: String§release: StringColour of the release marker verticals.
ctx_area: String§ctx_line: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more