struct Protocol::Overlay::HighlightConfig

Overview

Configuration data for the highlighting of page elements.

Included Modules

Defined in:

protocol/overlay.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def border_color : DOM::RGBA | Nil #

The border highlight fill color (default: transparent).


[View source]
def color_format : ColorFormat | Nil #

The color format used to format color styles (default: hex).


[View source]
def container_query_container_highlight_config : ContainerQueryContainerHighlightConfig | Nil #

The container query container highlight configuration (default: all transparent).


[View source]
def content_color : DOM::RGBA | Nil #

The content box highlight fill color (default: transparent).


[View source]
def contrast_algorithm : ContrastAlgorithm | Nil #

The contrast algorithm to use for the contrast ratio (default: aa).


[View source]
def css_grid_color : DOM::RGBA | Nil #

The grid layout color (default: transparent).


[View source]
def event_target_color : DOM::RGBA | Nil #

The event target element highlight fill color (default: transparent).


[View source]
def flex_container_highlight_config : FlexContainerHighlightConfig | Nil #

The flex container highlight configuration (default: all transparent).


[View source]
def flex_item_highlight_config : FlexItemHighlightConfig | Nil #

The flex item highlight configuration (default: all transparent).


[View source]
def grid_highlight_config : GridHighlightConfig | Nil #

The grid layout highlight configuration (default: all transparent).


[View source]
def margin_color : DOM::RGBA | Nil #

The margin highlight fill color (default: transparent).


[View source]
def padding_color : DOM::RGBA | Nil #

The padding highlight fill color (default: transparent).


[View source]
def shape_color : DOM::RGBA | Nil #

The shape outside fill color (default: transparent).


[View source]
def shape_margin_color : DOM::RGBA | Nil #

The shape margin fill color (default: transparent).


[View source]
def show_accessibility_info : Bool | Nil #

Whether the a11y info should be shown (default: true).


[View source]
def show_extension_lines : Bool | Nil #

Whether the extension lines from node to the rulers should be shown (default: false).


[View source]
def show_info : Bool | Nil #

Whether the node info tooltip should be shown (default: false).


[View source]
def show_rulers : Bool | Nil #

Whether the rulers should be shown (default: false).


[View source]
def show_styles : Bool | Nil #

Whether the node styles in the tooltip (default: false).


[View source]