pub struct Theme {Show 28 fields
pub name: String,
pub background: String,
pub participant_fill: String,
pub participant_stroke: String,
pub participant_text: String,
pub participant_shape: ParticipantShape,
pub lifeline_color: String,
pub lifeline_style: LifelineStyle,
pub message_color: String,
pub message_text_color: String,
pub note_fill: String,
pub note_stroke: String,
pub note_text_color: String,
pub activation_fill: String,
pub activation_stroke: String,
pub block_stroke: String,
pub block_label_fill: String,
pub block_fill: String,
pub font_family: String,
pub actor_fill: String,
pub actor_stroke: String,
pub state_fill: String,
pub state_stroke: String,
pub state_text_color: String,
pub ref_fill: String,
pub ref_stroke: String,
pub ref_text_color: String,
pub description_text_color: String,
}Expand description
Theme colors and styles
Fields§
§name: StringTheme name
background: StringBackground color
participant_fill: StringParticipant box fill color
participant_stroke: StringParticipant box stroke color
participant_text: StringParticipant text color
participant_shape: ParticipantShapeParticipant box shape
lifeline_color: StringLifeline color
lifeline_style: LifelineStyleLifeline style
message_color: StringMessage line color
message_text_color: StringMessage text color
note_fill: StringNote background color
note_stroke: StringNote stroke color
note_text_color: StringNote text color
activation_fill: StringActivation box fill color
activation_stroke: StringActivation box stroke color
block_stroke: StringBlock stroke color
block_label_fill: StringBlock label background
block_fill: StringBlock background fill (inside the block area)
font_family: StringFont family
actor_fill: StringActor head fill color
actor_stroke: StringActor stroke color
state_fill: StringState box fill color
state_stroke: StringState box stroke color
state_text_color: StringState text color
ref_fill: StringRef box fill color
ref_stroke: StringRef box stroke color
ref_text_color: StringRef text color
description_text_color: StringDescription text color
Implementations§
Source§impl Theme
impl Theme
Sourcepub fn default_theme() -> Self
pub fn default_theme() -> Self
Default theme (simple black and white)
Sourcepub fn modern_blue() -> Self
pub fn modern_blue() -> Self
Modern blue theme
Sourcepub fn modern_green() -> Self
pub fn modern_green() -> Self
Modern green theme
Sourcepub fn blue_outline() -> Self
pub fn blue_outline() -> Self
Blue outline theme
Sourcepub fn dark_green() -> Self
pub fn dark_green() -> Self
Dark theme with vibrant green accents
Sourcepub fn available_themes() -> Vec<&'static str>
pub fn available_themes() -> Vec<&'static str>
List all available theme names
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 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