pub struct StyleSpec {
pub font_size: u32,
pub font_family: String,
pub text_color: Option<String>,
pub background_color: Option<String>,
}Expand description
Visual style configuration for font and color settings.
Defines the appearance of rendered content, including font size, font family, and optional text/background colors. Used across themes, CLI overrides, and fallback rendering.
Fields§
§font_size: u32Font size in pixels.
font_family: StringCSS font-family name (e.g. "JetBrains Mono").
Can refer to an embedded font or system fallback.
text_color: Option<String>Text color in hexadecimal (e.g. "#00FF00"), or None for transparent.
background_color: Option<String>Background color in hexadecimal (e.g. "#000000"), or None for transparent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StyleSpec
impl RefUnwindSafe for StyleSpec
impl Send for StyleSpec
impl Sync for StyleSpec
impl Unpin for StyleSpec
impl UnwindSafe for StyleSpec
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