pub struct HighlightConfig {Show 19 fields
pub show_info: Option<bool>,
pub show_styles: Option<bool>,
pub show_rulers: Option<bool>,
pub show_accessibility_info: Option<bool>,
pub show_extension_lines: Option<bool>,
pub content_color: Option<Rgba>,
pub padding_color: Option<Rgba>,
pub border_color: Option<Rgba>,
pub margin_color: Option<Rgba>,
pub event_target_color: Option<Rgba>,
pub shape_color: Option<Rgba>,
pub shape_margin_color: Option<Rgba>,
pub css_grid_color: Option<Rgba>,
pub color_format: Option<ColorFormat>,
pub grid_highlight_config: Option<GridHighlightConfig>,
pub flex_container_highlight_config: Option<FlexContainerHighlightConfig>,
pub flex_item_highlight_config: Option<FlexItemHighlightConfig>,
pub contrast_algorithm: Option<ContrastAlgorithm>,
pub container_query_container_highlight_config: Option<ContainerQueryContainerHighlightConfig>,
}Expand description
Configuration data for the highlighting of page elements. HighlightConfig
Fields§
§show_info: Option<bool>Whether the node info tooltip should be shown (default: false).
show_styles: Option<bool>Whether the node styles in the tooltip (default: false).
show_rulers: Option<bool>Whether the rulers should be shown (default: false).
show_accessibility_info: Option<bool>Whether the a11y info should be shown (default: true).
show_extension_lines: Option<bool>Whether the extension lines from node to the rulers should be shown (default: false).
content_color: Option<Rgba>The content box highlight fill color (default: transparent).
padding_color: Option<Rgba>The padding highlight fill color (default: transparent).
border_color: Option<Rgba>The border highlight fill color (default: transparent).
margin_color: Option<Rgba>The margin highlight fill color (default: transparent).
event_target_color: Option<Rgba>The event target element highlight fill color (default: transparent).
shape_color: Option<Rgba>The shape outside fill color (default: transparent).
shape_margin_color: Option<Rgba>The shape margin fill color (default: transparent).
css_grid_color: Option<Rgba>The grid layout color (default: transparent).
color_format: Option<ColorFormat>The color format used to format color styles (default: hex).
grid_highlight_config: Option<GridHighlightConfig>The grid layout highlight configuration (default: all transparent).
flex_container_highlight_config: Option<FlexContainerHighlightConfig>The flex container highlight configuration (default: all transparent).
flex_item_highlight_config: Option<FlexItemHighlightConfig>The flex item highlight configuration (default: all transparent).
contrast_algorithm: Option<ContrastAlgorithm>The contrast algorithm to use for the contrast ratio (default: aa).
container_query_container_highlight_config: Option<ContainerQueryContainerHighlightConfig>The container query container highlight configuration (default: all transparent).
Implementations§
Source§impl HighlightConfig
impl HighlightConfig
pub fn builder() -> HighlightConfigBuilder
Source§impl HighlightConfig
impl HighlightConfig
pub const IDENTIFIER: &'static str = "Overlay.HighlightConfig"
Trait Implementations§
Source§impl Clone for HighlightConfig
impl Clone for HighlightConfig
Source§fn clone(&self) -> HighlightConfig
fn clone(&self) -> HighlightConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more