pub struct NodeTheme {
pub fill_color: String,
pub stroke_color: String,
pub stroke_width: f32,
pub border_radius: f32,
pub shadow: ShadowConfig,
}Expand description
Node theme configuration.
Fields§
§fill_color: StringThe default fill color for nodes (hex string).
stroke_color: StringThe default stroke color for nodes (hex string).
stroke_width: f32The width of the node’s stroke.
border_radius: f32The border radius for rounded node corners.
shadow: ShadowConfigThe shadow configuration for nodes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeTheme
impl<'de> Deserialize<'de> for NodeTheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NodeTheme
impl RefUnwindSafe for NodeTheme
impl Send for NodeTheme
impl Sync for NodeTheme
impl Unpin for NodeTheme
impl UnsafeUnpin for NodeTheme
impl UnwindSafe for NodeTheme
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