NavigationRailItemColors
-
Cmn
class NavigationRailItemColors
Represents the colors of the various elements of a navigation item.
Summary
Public constructors |
|
|---|---|
NavigationRailItemColors(create an instance with arbitrary colors. |
Cmn
|
Public functions |
||
|---|---|---|
NavigationRailItemColors |
copy(Returns a copy of this NavigationRailItemColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
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
NavigationRailItemColors
NavigationRailItemColors(
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
): NavigationRailItemColors
Returns a copy of this NavigationRailItemColors, 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.