SelectionChromeStyle

data class SelectionChromeStyle(val padding: Dp = 6.dp, val handleSize: Dp = 11.dp, val cornerRadius: Dp = 8.dp, val strokeWidth: Dp = 1.5.dp, val accent: Color = Color(0xFF2196F3))

Visual configuration for the selection chrome — the accent-colored box and handles DrawBox paints around selected elements. All sizes are in Dp and stay a constant on-screen size regardless of zoom.

Constructors

Link copied to clipboard
constructor(padding: Dp = 6.dp, handleSize: Dp = 11.dp, cornerRadius: Dp = 8.dp, strokeWidth: Dp = 1.5.dp, accent: Color = Color(0xFF2196F3))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Accent color of the box, handles, and marquee.

Link copied to clipboard

Corner radius of the selection box's rounded edges.

Link copied to clipboard

Diameter of the round resize / rotation handles.

Link copied to clipboard
val padding: Dp

Gap between an element's tight bounds and the drawn selection box. Increase for more breathing room around the element, decrease to hug it tightly.

Link copied to clipboard

Line thickness of the box and handle outlines.