CropOverlayDefaults

The sizes, colors and constraint a crop overlay falls back to.

The palette is neutral and reads no theme. A themed host passes its own colors to colors at the one call site that builds the overlay.

Properties

Link copied to clipboard

What a crop gesture may produce unless a caller says otherwise.

Link copied to clipboard

How long a corner bracket's arms and an edge grip are drawn.

Link copied to clipboard

How short a crop may get by default, as a fraction of the frame.

Link copied to clipboard

How narrow a crop may get by default, as a fraction of the frame.

Link copied to clipboard

The palette an overlay draws with unless a host passes its own.

Link copied to clipboard

How wide a handle answers to a finger, which is wider than it is drawn.

Functions

Link copied to clipboard
fun colors(scrim: Color = Color(0xB8000000), outline: Color = Color(0xFFF2F3F5), handle: Color = Color(0xFFE8C15A), grid: Color = Color(0x80FFFFFF)): CropColors

A neutral palette, and the one thing to override for a themed host.