Known direct subclasses
TextStyleStyleScope

An interface that introduces the text property to a Style receiver scope.

Known indirect subclasses
StyleScope

A StyleScope is the receiver scope of a Style lambda.


An interface that introduces the contentColor property to a Style receiver scope.

See also
StyleScope

Summary

Public functions

Unit

Sets the preferred brush for rendering content, primarily affecting text.

Cmn
Unit

Sets the preferred content color, primarily affecting text color.

Cmn

Public functions

contentBrush

fun contentBrush(value: Brush): Unit

Sets the preferred brush for rendering content, primarily affecting text. This allows for gradient text or other brush-based text effects. This property is inherited by child text components if not overridden. This affects drawing only and is often a component of a TextStyle.

This property is inherited.

Parameters
value: Brush

The brush for the content, typically text.

contentColor

fun contentColor(value: Color): Unit

Sets the preferred content color, primarily affecting text color. This property is inherited by child text components if not overridden. This affects drawing only and is often a component of a TextStyle.

This property is inherited.

Parameters
value: Color

The color for the content, typically text.