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 moreSource§impl Debug for HighlightConfig
impl Debug for HighlightConfig
Source§impl Default for HighlightConfig
impl Default for HighlightConfig
Source§fn default() -> HighlightConfig
fn default() -> HighlightConfig
Source§impl<'de> Deserialize<'de> for HighlightConfig
impl<'de> Deserialize<'de> for HighlightConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HighlightConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HighlightConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for HighlightConfig
impl PartialEq for HighlightConfig
Source§impl Serialize for HighlightConfig
impl Serialize for HighlightConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for HighlightConfig
Auto Trait Implementations§
impl Freeze for HighlightConfig
impl RefUnwindSafe for HighlightConfig
impl Send for HighlightConfig
impl Sync for HighlightConfig
impl Unpin for HighlightConfig
impl UnwindSafe for HighlightConfig
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> 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 more