chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.overlay / HighlightConfig

HighlightConfig

data class HighlightConfig

Configuration data for the highlighting of page elements.

Official doc

Constructors

<init>

Configuration data for the highlighting of page elements.

HighlightConfig(showInfo: Boolean? = null, showStyles: Boolean? = null, showRulers: Boolean? = null, showAccessibilityInfo: Boolean? = null, showExtensionLines: Boolean? = null, contentColor: RGBA? = null, paddingColor: RGBA? = null, borderColor: RGBA? = null, marginColor: RGBA? = null, eventTargetColor: RGBA? = null, shapeColor: RGBA? = null, shapeMarginColor: RGBA? = null, cssGridColor: RGBA? = null, colorFormat: ColorFormat? = null, gridHighlightConfig: GridHighlightConfig? = null, flexContainerHighlightConfig: FlexContainerHighlightConfig? = null, contrastAlgorithm: ContrastAlgorithm? = null)

Properties

borderColor

The border highlight fill color (default: transparent).

val borderColor: RGBA?

colorFormat

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

val colorFormat: ColorFormat?

contentColor

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

val contentColor: RGBA?

contrastAlgorithm

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

val contrastAlgorithm: ContrastAlgorithm?

cssGridColor

The grid layout color (default: transparent).

val cssGridColor: RGBA?

eventTargetColor

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

val eventTargetColor: RGBA?

flexContainerHighlightConfig

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

val flexContainerHighlightConfig: FlexContainerHighlightConfig?

gridHighlightConfig

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

val gridHighlightConfig: GridHighlightConfig?

marginColor

The margin highlight fill color (default: transparent).

val marginColor: RGBA?

paddingColor

The padding highlight fill color (default: transparent).

val paddingColor: RGBA?

shapeColor

The shape outside fill color (default: transparent).

val shapeColor: RGBA?

shapeMarginColor

The shape margin fill color (default: transparent).

val shapeMarginColor: RGBA?

showAccessibilityInfo

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

val showAccessibilityInfo: Boolean?

showExtensionLines

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

val showExtensionLines: Boolean?

showInfo

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

val showInfo: Boolean?

showRulers

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

val showRulers: Boolean?

showStyles

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

val showStyles: Boolean?