pub struct Theme {
pub background: Color,
pub grid: Color,
pub selection: Color,
pub highlight: Color,
pub entity: Color,
pub outline: Color,
pub active: Color,
pub inactive: Color,
pub measure: Color,
pub snap_indicator: Color,
pub guide: Color,
}Expand description
A theme for SVG export.
Fields§
§background: ColorBackground color of the drawing canvas.
grid: ColorColor used for grid lines.
selection: ColorColor used for selected entities.
highlight: ColorColor used for highlighting hovered entities.
entity: ColorDefault color for entities.
outline: ColorDefault color for entity outlines.
active: ColorColor used for active construction lines.
inactive: ColorColor used for inactive construction lines.
measure: ColorColor for dimensions and annotations.
snap_indicator: ColorColor for snapping indicators.
guide: ColorColor for guidelines (e.g. inference lines).
Trait Implementations§
impl StructuralPartialEq for Theme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more