HighlightConfig

@Serializable
data class HighlightConfig(val showInfo: Boolean? = null, val showStyles: Boolean? = null, val showRulers: Boolean? = null, val showAccessibilityInfo: Boolean? = null, val showExtensionLines: Boolean? = null, val contentColor: DOM.RGBA? = null, val paddingColor: DOM.RGBA? = null, val borderColor: DOM.RGBA? = null, val marginColor: DOM.RGBA? = null, val eventTargetColor: DOM.RGBA? = null, val shapeColor: DOM.RGBA? = null, val shapeMarginColor: DOM.RGBA? = null, val cssGridColor: DOM.RGBA? = null, val colorFormat: Overlay.ColorFormat? = null, val gridHighlightConfig: Overlay.GridHighlightConfig? = null, val flexContainerHighlightConfig: Overlay.FlexContainerHighlightConfig? = null, val flexItemHighlightConfig: Overlay.FlexItemHighlightConfig? = null, val contrastAlgorithm: Overlay.ContrastAlgorithm? = null, val containerQueryContainerHighlightConfig: Overlay.ContainerQueryContainerHighlightConfig? = null)

Configuration data for the highlighting of page elements.

Constructors

Link copied to clipboard
constructor(showInfo: Boolean? = null, showStyles: Boolean? = null, showRulers: Boolean? = null, showAccessibilityInfo: Boolean? = null, showExtensionLines: Boolean? = null, contentColor: DOM.RGBA? = null, paddingColor: DOM.RGBA? = null, borderColor: DOM.RGBA? = null, marginColor: DOM.RGBA? = null, eventTargetColor: DOM.RGBA? = null, shapeColor: DOM.RGBA? = null, shapeMarginColor: DOM.RGBA? = null, cssGridColor: DOM.RGBA? = null, colorFormat: Overlay.ColorFormat? = null, gridHighlightConfig: Overlay.GridHighlightConfig? = null, flexContainerHighlightConfig: Overlay.FlexContainerHighlightConfig? = null, flexItemHighlightConfig: Overlay.FlexItemHighlightConfig? = null, contrastAlgorithm: Overlay.ContrastAlgorithm? = null, containerQueryContainerHighlightConfig: Overlay.ContainerQueryContainerHighlightConfig? = null)

Properties

Link copied to clipboard
val borderColor: DOM.RGBA? = null

The border highlight fill color (default: transparent).

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val contentColor: DOM.RGBA? = null

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

Link copied to clipboard

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

Link copied to clipboard
val cssGridColor: DOM.RGBA? = null

The grid layout color (default: transparent).

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val marginColor: DOM.RGBA? = null

The margin highlight fill color (default: transparent).

Link copied to clipboard
val paddingColor: DOM.RGBA? = null

The padding highlight fill color (default: transparent).

Link copied to clipboard
val shapeColor: DOM.RGBA? = null

The shape outside fill color (default: transparent).

Link copied to clipboard

The shape margin fill color (default: transparent).

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val showInfo: Boolean? = null

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

Link copied to clipboard
val showRulers: Boolean? = null

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

Link copied to clipboard
val showStyles: Boolean? = null

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