class SurfacePart
source · line 161public
public class SurfacePart internal constructor(
public val metrics: SurfaceMetrics,
public val fill: StateColors,
public val border: StateColors,
public val foreground: StateColors,
public val focus: OutlineStyle,
public val shadows: Array<BoxShadow> = [],
/** None inherits shadows; an empty array removes the hover elevation. */
public val hoverShadows: Array<BoxShadow>? = None
)
Concrete descriptions shared by the shape-based themes and custom presets.
property focus
source · line 166public
public val focus: OutlineStyle
get: public read-only
property metrics
source · line 162public
public val metrics: SurfaceMetrics
get: public read-only
property hoverShadows
source · line 169public
public val hoverShadows: Array<BoxShadow>? = None
get: public read-only
None inherits shadows; an empty array removes the hover elevation.
property foreground
source · line 165public
public val foreground: StateColors
get: public read-only
property shadows
source · line 167public
public val shadows: Array<BoxShadow> = []
get: public read-only
function copy
source · line 171public
public fun copy(configure: SurfacePartBuilder.() -> Unit = {}): SurfacePart
parameter configure
source · line 171public
configure: SurfacePartBuilder.() -> Unit = {}
property fill
source · line 163public
public val fill: StateColors
get: public read-only
property border
source · line 164public
public val border: StateColors
get: public read-only