FilmstripTimelineDefaults

The sizes, colors and formats a timeline 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 timeline.

Properties

Link copied to clipboard

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

Link copied to clipboard

How wide the drawn body of a trim handle is.

Link copied to clipboard

How far an arrow key seeks by default.

Link copied to clipboard

How close two ruler ticks may be drawn before the ruler steps up to a coarser unit.

Link copied to clipboard

How short a trim may get by default.

Link copied to clipboard

The palette a timeline draws with unless a host passes its own.

Link copied to clipboard

How wide the playhead's knob is drawn.

Link copied to clipboard

How wide the playhead's line is drawn.

Link copied to clipboard

How tall the ruler is drawn.

Link copied to clipboard

How tall the strip of tiles is drawn.

Link copied to clipboard

How wide one tile is drawn.

Link copied to clipboard

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

Functions

Link copied to clipboard
fun clockLabel(time: Duration, interval: Duration): String

Formats time for a ruler whose ticks are interval apart.

Link copied to clipboard
fun colors(tile: Color = Color(0xFF2A2D33), tileDivider: Color = Color(0x33000000), ruler: Color = Color(0xFF8A8F98), rulerLabel: Color = Color(0xFF8A8F98), playhead: Color = Color(0xFFF2F3F5), trimHandle: Color = Color(0xFFE8C15A), trimHandleGrip: Color = Color(0xFF1B1D21), trimScrim: Color = Color(0xB8000000)): TimelineColors

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