CardColors
class CardColors
Represents colors used in card components, such as titleCard or appCard.
Summary
Public constructors |
|---|
CardColors( |
Public functions |
|
|---|---|
CardColors |
copy(Returns a copy of this |
Public properties |
|
|---|---|
LayoutColor |
|
LayoutColor |
the content color for the card. |
LayoutColor? |
the color used for the icon to be put at the center of the progress indicator to compose the graphic. |
ProgressIndicatorColors? |
the color used for the progress indicator set as graphic of the card. |
LayoutColor |
the color used for label for the card. |
LayoutColor |
the color used for icon in the data card type. |
LayoutColor |
the color used for secondary label for the data card type. |
LayoutColor |
the color used for time for the card. |
LayoutColor |
the color used for title for the card. |
Public constructors
CardColors
CardColors(
backgroundColor: LayoutColor = Color.BLACK.argb,
titleColor: LayoutColor = Color.BLACK.argb,
contentColor: LayoutColor = Color.BLACK.argb,
timeColor: LayoutColor = contentColor,
labelColor: LayoutColor = titleColor,
secondaryIconColor: LayoutColor = titleColor,
secondaryTextColor: LayoutColor = timeColor,
graphicProgressIndicatorColors: ProgressIndicatorColors? = null,
graphicIconColor: LayoutColor? = null
)
| Parameters | |
|---|---|
backgroundColor: LayoutColor = Color.BLACK.argb |
|
titleColor: LayoutColor = Color.BLACK.argb |
the color used for title for the card. |
contentColor: LayoutColor = Color.BLACK.argb |
the content color for the card. |
timeColor: LayoutColor = contentColor |
the color used for time for the card. |
labelColor: LayoutColor = titleColor |
the color used for label for the card. |
secondaryIconColor: LayoutColor = titleColor |
the color used for icon in the data card type. |
secondaryTextColor: LayoutColor = timeColor |
the color used for secondary label for the data card type. |
graphicProgressIndicatorColors: ProgressIndicatorColors? = null |
the color used for the progress indicator set as graphic of the card. If null, uses the default color defined in |
graphicIconColor: LayoutColor? = null |
the color used for the icon to be put at the center of the progress indicator to compose the graphic. If null, uses the default icon color, which is |
Public functions
copy
fun copy(
backgroundColor: LayoutColor = this.backgroundColor,
titleColor: LayoutColor = this.titleColor,
contentColor: LayoutColor = this.contentColor,
timeColor: LayoutColor = this.timeColor,
labelColor: LayoutColor = this.labelColor,
secondaryIconColor: LayoutColor = this.secondaryIconColor,
secondaryTextColor: LayoutColor = this.secondaryTextColor,
graphicProgressIndicatorColors: ProgressIndicatorColors? = this.graphicProgressIndicatorColors,
graphicIconColor: LayoutColor? = this.graphicIconColor
): CardColors
Returns a copy of this CardColors, optionally overriding some of the values.
| Parameters | |
|---|---|
backgroundColor: LayoutColor = this.backgroundColor |
|
titleColor: LayoutColor = this.titleColor |
the color used for title for the card. |
contentColor: LayoutColor = this.contentColor |
the content color for the card. |
timeColor: LayoutColor = this.timeColor |
the color used for time for the card. |
labelColor: LayoutColor = this.labelColor |
the color used for label for the card. |
secondaryIconColor: LayoutColor = this.secondaryIconColor |
the color used for icon in the data card type. |
secondaryTextColor: LayoutColor = this.secondaryTextColor |
the color used for secondary label for the data card type. |
graphicProgressIndicatorColors: ProgressIndicatorColors? = this.graphicProgressIndicatorColors |
the color used for the progress indicator set as graphic of the card. If null, uses the default color defined in |
graphicIconColor: LayoutColor? = this.graphicIconColor |
the color used for the icon to be put at the center of the progress indicator to compose the graphic. If null, uses the default icon color, which is |
Public properties
backgroundColor
val backgroundColor: LayoutColor
LayoutColor which is used to as the background color for the card.
graphicIconColor
val graphicIconColor: LayoutColor?
the color used for the icon to be put at the center of the progress indicator to compose the graphic. If null, uses the default icon color, which is ColorScheme.primary.
graphicProgressIndicatorColors
val graphicProgressIndicatorColors: ProgressIndicatorColors?
the color used for the progress indicator set as graphic of the card. If null, uses the default color defined in circularProgressIndicator and segmentedCircularProgressIndicator, which is filledProgressIndicatorColors.
secondaryIconColor
val secondaryIconColor: LayoutColor
the color used for icon in the data card type.
secondaryTextColor
val secondaryTextColor: LayoutColor
the color used for secondary label for the data card type.