paletteEntry
A property delegate which helps reduce boilerplate when defining palette color groups.
For example, to create a color group for a Button widget:
class MutableButton(palette: MutablePalette) : MutablePalette.ColorGroup(palette, "button"), Button {
override var default by paletteEntry()
override var hover by paletteEntry()
override var focus by paletteEntry()
override var pressed by paletteEntry()
}Content copied to clipboard
The above will create color entries for button.default, button.hover, button.focus, and button.pressed in the underlying palette automatically.