RadioButtonDefaults
object RadioButtonDefaults
Contains the default values used by RadioButton.
Summary
Public functions |
|
|---|---|
RadioButtonColors |
@ComposableCreates a |
Public functions
colors
Added in 1.6.0-alpha06
@Composable
fun colors(
selectedRingColor: Color = MaterialTheme.colors.secondary,
selectedDotColor: Color = MaterialTheme.colors.secondary,
unselectedRingColor: Color = contentColorFor( MaterialTheme.colors.primary .copy(alpha = 0.5f) .compositeOver(MaterialTheme.colors.surface) ),
unselectedDotColor: Color = contentColorFor( MaterialTheme.colors.primary .copy(alpha = 0.5f) .compositeOver(MaterialTheme.colors.surface) )
): RadioButtonColors
Creates a RadioButtonColors for use in a RadioButton.
| Parameters | |
|---|---|
selectedRingColor: Color = MaterialTheme.colors.secondary |
The outer ring color of this |
selectedDotColor: Color = MaterialTheme.colors.secondary |
The inner dot color of this |
unselectedRingColor: Color = contentColorFor(
MaterialTheme.colors.primary
.copy(alpha = 0.5f)
.compositeOver(MaterialTheme.colors.surface)
) |
The outer ring color of this |
unselectedDotColor: Color = contentColorFor(
MaterialTheme.colors.primary
.copy(alpha = 0.5f)
.compositeOver(MaterialTheme.colors.surface)
) |
The inner dot color of this |