Source set: Android
public class RemoteIconToggleButtonColors(
public val checkedContainerColor: RemoteColor,
public val checkedContentColor: RemoteColor,
public val uncheckedContainerColor: RemoteColor,
public val uncheckedContentColor: RemoteColor,
public val disabledCheckedContainerColor: RemoteColor,
public val disabledCheckedContentColor: RemoteColor,
public val disabledUncheckedContainerColor: RemoteColor,
public val disabledUncheckedContentColor: RemoteColor,
)
Represents the different container and content colors used for RemoteIconToggleButton in various states, that are checked, unchecked, enabled and disabled.
See RemoteIconToggleButtonDefaults.colors for the default colors used in a RemoteIconToggleButton.
Parameters
| checkedContainerColor | Container or background color when the toggle button is checked |
| checkedContentColor | Color of the content (e.g. icon) when the toggle button is checked |
| uncheckedContainerColor | Container or background color when the toggle button is unchecked |
| uncheckedContentColor | Color of the content (e.g. icon) when the toggle button is unchecked |
| disabledCheckedContainerColor | Container or background color when the toggle button is disabled and checked |
| disabledCheckedContentColor | Color of content (e.g. icon) when the toggle button is disabled and checked |
| disabledUncheckedContainerColor | Container or background color when the toggle button is disabled and unchecked |
| disabledUncheckedContentColor | Color of the content (e.g. icon) when the toggle button is disabled and unchecked |
Functions
copy
Source set: Android
public fun copy(
checkedContainerColor: RemoteColor = this.checkedContainerColor,
checkedContentColor: RemoteColor = this.checkedContentColor,
uncheckedContainerColor: RemoteColor = this.uncheckedContainerColor,
uncheckedContentColor: RemoteColor = this.uncheckedContentColor,
disabledCheckedContainerColor: RemoteColor = this.disabledCheckedContainerColor,
disabledCheckedContentColor: RemoteColor = this.disabledCheckedContentColor,
disabledUncheckedContainerColor: RemoteColor = this.disabledUncheckedContainerColor,
disabledUncheckedContentColor: RemoteColor = this.disabledUncheckedContentColor,
): RemoteIconToggleButtonColors
Returns a copy of this RemoteIconToggleButtonColors optionally overriding some of the values.
Parameters
| checkedContainerColor | Container or background color when the toggle button is checked |
| checkedContentColor | Color of the content (e.g. icon) when the toggle button is checked |
| uncheckedContainerColor | Container or background color when the toggle button is unchecked |
| uncheckedContentColor | Color of the content (e.g. icon) when the toggle button is unchecked |
| disabledCheckedContainerColor | Container or background color when the toggle button is disabled and checked |
| disabledCheckedContentColor | Color of content (e.g. icon) when the toggle button is disabled and checked |
| disabledUncheckedContainerColor | Container or background color when the toggle button is disabled and unchecked |
| disabledUncheckedContentColor | Color of the content (e.g. icon) when the toggle button is disabled and unchecked |
Return
a copy of this RemoteIconToggleButtonColors with the specified values overridden
equals
Source set: Android
override fun equals(other: Any?): Boolean
hashCode
Source set: Android
override fun hashCode(): Int