ColorSchemeAssociationKind

class ColorSchemeAssociationKind(name: String, fallback: ColorSchemeAssociationKind?)

Allows associating different color schemes to different visual parts of UI components. For example, the checkbox has three different visual areas:

  • Border - associated with .Border

  • Fill - associated with .MarkBox

  • Check mark - associated with .Mark

Applications can create custom instances of this class to further refine the control over the painting. In this case, the custom UI delegates must be created to use these new association kinds.

Author

Kirill Grouchnikov

Constructors

ColorSchemeAssociationKind
Link copied to clipboard
fun ColorSchemeAssociationKind(name: String, fallback: ColorSchemeAssociationKind?)

Types

Companion
Link copied to clipboard
object Companion

Functions

toString
Link copied to clipboard
open override fun toString(): String

Properties

fallback
Link copied to clipboard
val fallback: ColorSchemeAssociationKind?

Fallback for this association kind. This is used when no color scheme is associated with this kind. For example, .TabBorder specifies that its fallback is .Border. When the tabs are painted, it will try to use the color scheme associated with .TabBorder. If none was registered, it will fall back to use the color scheme associated with .Border, and if that is not registered as well, will use the color scheme associated with .Fill.