NavigationItemColors
-
Cmn
class NavigationItemColors
Represents the colors of the various elements of a navigation item.
Summary
Public constructors |
|
|---|---|
NavigationItemColors(create an instance with arbitrary colors. |
Cmn
|
Public functions |
||
|---|---|---|
NavigationItemColors |
copy(Returns a copy of this NavigationItemColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
Color |
Represents the icon color for this item, depending on whether it is |
Cmn
|
Color |
Represents the text color for this item, depending on whether it is |
Cmn
|
Public properties |
||
|---|---|---|
Color |
the color to use for the icon when the item is disabled. |
Cmn
|
Color |
the color to use for the text label when the item is disabled. |
Cmn
|
Color |
the color to use for the icon when the item is selected. |
Cmn
|
Color |
the color to use for the indicator when the item is selected. |
Cmn
|
Color |
the color to use for the text label when the item is selected. |
Cmn
|
Color |
the color to use for the icon when the item is unselected. |
Cmn
|
Color |
the color to use for the text label when the item is unselected. |
Cmn
|
Public constructors
NavigationItemColors
NavigationItemColors(
selectedIconColor: Color,
selectedTextColor: Color,
selectedIndicatorColor: Color,
unselectedIconColor: Color,
unselectedTextColor: Color,
disabledIconColor: Color,
disabledTextColor: Color
)
create an instance with arbitrary colors.
| Parameters | |
|---|---|
selectedIconColor: Color |
the color to use for the icon when the item is selected. |
selectedTextColor: Color |
the color to use for the text label when the item is selected. |
selectedIndicatorColor: Color |
the color to use for the indicator when the item is selected. |
unselectedIconColor: Color |
the color to use for the icon when the item is unselected. |
unselectedTextColor: Color |
the color to use for the text label when the item is unselected. |
disabledIconColor: Color |
the color to use for the icon when the item is disabled. |
disabledTextColor: Color |
the color to use for the text label when the item is disabled. |
Public functions
copy
fun copy(
selectedIconColor: Color = this.selectedIconColor,
selectedTextColor: Color = this.selectedTextColor,
selectedIndicatorColor: Color = this.selectedIndicatorColor,
unselectedIconColor: Color = this.unselectedIconColor,
unselectedTextColor: Color = this.unselectedTextColor,
disabledIconColor: Color = this.disabledIconColor,
disabledTextColor: Color = this.disabledTextColor
): NavigationItemColors
Returns a copy of this NavigationItemColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”.
Public properties
disabledIconColor
val disabledIconColor: Color
the color to use for the icon when the item is disabled.
disabledTextColor
val disabledTextColor: Color
the color to use for the text label when the item is disabled.
selectedIconColor
val selectedIconColor: Color
the color to use for the icon when the item is selected.
selectedIndicatorColor
val selectedIndicatorColor: Color
the color to use for the indicator when the item is selected.
selectedTextColor
val selectedTextColor: Color
the color to use for the text label when the item is selected.
unselectedIconColor
val unselectedIconColor: Color
the color to use for the icon when the item is unselected.
unselectedTextColor
val unselectedTextColor: Color
the color to use for the text label when the item is unselected.