pub struct FlowTheme {Show 30 fields
pub node_card_background: u32,
pub node_card_border: u32,
pub node_card_border_selected: u32,
pub undefined_node_background: u32,
pub undefined_node_border: u32,
pub node_caption_text: u32,
pub undefined_node_caption_text: u32,
pub default_port_fill: u32,
pub background: u32,
pub background_grid_dot: u32,
pub edge_stroke: u32,
pub edge_stroke_selected: u32,
pub selection_rect_border: u32,
pub selection_rect_fill_rgba: u32,
pub port_preview_line: u32,
pub port_preview_dot: u32,
pub minimap_background: u32,
pub minimap_border: u32,
pub minimap_edge: u32,
pub minimap_node_fill: u32,
pub minimap_node_stroke: u32,
pub minimap_viewport_stroke: u32,
pub zoom_controls_background: u32,
pub zoom_controls_border: u32,
pub zoom_controls_text: u32,
pub context_menu_background: u32,
pub context_menu_border: u32,
pub context_menu_text: u32,
pub context_menu_shortcut_text: u32,
pub context_menu_separator: u32,
}Expand description
Default canvas chrome: node cards, grid, edges, selection marquee.
Fields§
§node_card_background: u32Default node card background (gpui::rgb).
node_card_border: u32Default node card border when not selected.
node_card_border_selected: u32Default node card border when selected.
undefined_node_background: u32Unknown node type card background.
undefined_node_border: u32Unknown node type card border.
node_caption_text: u32Primary label on default node cards.
undefined_node_caption_text: u32Label on undefined-type node cards.
default_port_fill: u32Default circular port fill (NodeRenderer::port_render).
background: u32Main surface color behind the dot grid.
background_grid_dot: u32Dot color for the background grid.
edge_stroke: u32Edge curve when not selected.
edge_stroke_selected: u32Edge curve when selected.
selection_rect_border: u32Marquee / move-preview rectangle outline (gpui::rgb).
selection_rect_fill_rgba: u32Marquee / move-preview fill (gpui::rgba, e.g. 0x78A0FF4c).
port_preview_line: u32Temporary line while dragging a link from a port.
port_preview_dot: u32Endpoint disc while dragging a link from a port (muted so it does not overpower the canvas).
minimap_background: u32Minimap inner panel fill (crate::MinimapPlugin).
minimap_border: u32Minimap inner panel outline.
minimap_edge: u32Minimap graph edges (straight segments between node centers).
minimap_node_fill: u32Minimap node rectangle fill.
minimap_node_stroke: u32Minimap node rectangle outline.
minimap_viewport_stroke: u32Minimap viewport / visible-area frame.
zoom_controls_background: u32Zoom bar button fill (crate::ZoomControlsPlugin).
zoom_controls_border: u32Zoom bar button border.
zoom_controls_text: u32Zoom bar glyph color.
Context menu panel fill (crate::ContextMenuPlugin).
Context menu panel outline.
Context menu row label.
Context menu shortcut hint (muted).
Context menu separator rule between rows.
Implementations§
Trait Implementations§
impl StructuralPartialEq for FlowTheme
Auto Trait Implementations§
impl Freeze for FlowTheme
impl RefUnwindSafe for FlowTheme
impl Send for FlowTheme
impl Sync for FlowTheme
impl Unpin for FlowTheme
impl UnsafeUnpin for FlowTheme
impl UnwindSafe for FlowTheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().